mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
16 lines
570 B
HTML
16 lines
570 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
if (location.hash == "#target") {
|
|
parent.postMessage("haveHash", "*");
|
|
} else {
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
document.open();
|
|
document.write("<!DOCTYPE html><html style='height: 100%'><body style='height: 100%'><div style='height: 200%'></div><div id='target'></div></body></html>");
|
|
document.close();
|
|
// Notify parent via postMessage, since otherwise exceptions will not get
|
|
// caught by its onerror handler.
|
|
parent.postMessage("doTest", "*");
|
|
});
|
|
}
|
|
</script>
|