haikuwebkit/LayoutTests/fast/events/resources/pageshow-pagehide-subframe-...

20 lines
525 B
HTML

<p>Subframe-2</p>
<script>
window.onload = function(evt) {
top.log("Subframe window.onload");
}
window.onunload = function(evt) {
top.log("Subframe window.onunload");
}
window.onpageshow = function(evt) {
top.log("Subframe window.onpageshow" + ", target = " + evt.target + ", persisted = " + evt.persisted);
top.postMessage("subframe-loaded", "*");
}
window.onpagehide = function(evt) {
top.log("Subframe window.onpagehide" + ", target = " + evt.target + ", persisted = " + evt.persisted);
}
</script>