Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/view-source/reftest.list
<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>