002.html (494B)
1 <!doctype html> 2 <title>beforeunload event properties</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id="log"></div> 6 <script> 7 var t = async_test(); 8 9 function do_test(e) { 10 assert_equals(e.type, "beforeunload"); 11 assert_false(e.bubbles, "bubbles"); 12 assert_true(e.cancelable, "bubbles"); 13 assert_equals(e.returnValue, ""); 14 } 15 16 onload = t.step_func(function() { 17 t.done(); 18 }) 19 </script> 20 <iframe src="001-1.html"></iframe>