pjs/layout/reftests/view-source/view-source-image.html

9 строки
270 B
HTML
Исходник Обычный вид История

<script>
var url = document.location.href;
var imageUrl = url.replace(/[/][^/]*$/, "/mozilla-16.png");
var viewSourceImageUrl = "view-source:" + imageUrl;
var html = "<iframe src='#url#'>".replace(/#url#/, viewSourceImageUrl);
document.write(html);
</script>