5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
10 window
.onload = function()
12 window
.setTimeout("window.location.href = 'resources/notify-done.html';", 0);
15 window
.onbeforeunload = function()
17 return "This is beforeunload from the top level frame.";
21 <p>This page registers a 'beforeunload' handler, and contains multiple IFrames that each do the same. Only the initial dialog from this top-level frame should display. The IFrame dialogs should be suppressed.
</p>
22 <iframe src=
"resources/iframe-with-beforeunload.html"></iframe>
23 <iframe src=
"resources/iframe-with-beforeunload.html"></iframe>