blob: 411e53b8e28ffe6fc460256dd1ff896a8d38ce27 [file] [log] [blame]
<body onpageshow='onPageshow(event)' onpagehide='onPagehide(event)'>
<p>Subframe</p>
<iframe src="pageshow-pagehide-subsubframe.html"></iframe>
<script>
window.onload = function(evt) {
top.log("Subframe window.onload");
}
window.onunload = function(evt) {
top.log("Subframe window.onunload");
}
function onPageshow(evt)
{
top.log("Subframe window.onpageshow" + ", target = " + evt.target + ", persisted = " + evt.persisted);
top.postMessage("subframe-loaded", "*");
}
function onPagehide(evt)
{
top.log("Subframe window.onpagehide" + ", target = " + evt.target + ", persisted = " + evt.persisted);
}
</script>
</body>