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

9 lines
286 B
HTML
Raw Normal View History

2017-04-19 07:56:45 +00:00
<script>
var url = document.location.href;
var imageUrl = url.replace(/[/][^/]*$/, "/blue-circle-16x16.png");
var viewSourceImageUrl = "view-source:" + imageUrl;
var html = "<iframe src='#url#'></iframe>".replace(/#url#/, viewSourceImageUrl);
document.write(html);
</script>