1 <html> 2 <head> 3 <title>ChromeFrame fulltab mode unload event test</title> 4 <script type="text/javascript" 5 src="chrome_frame_tester_helpers.js"></script> 6 7 <script type="text/javascript"> 8 var new_window; 9 function ValidateUserAgent() { 10 if (isRunningInChrome()) { 11 window.localStorage.unload_success = 0; 12 new_window = window.open("fulltab_before_unload_event_main.html", 13 "_self"); 14 } 15 } 16 17 function onBeforeUnload() { 18 if (isRunningInChrome()) { 19 new_window.localStorage.unload_success = 1; 20 } 21 } 22 </script> 23 </head> 24 25 <body onLoad="setTimeout(ValidateUserAgent, 100);" 26 onbeforeunload="onBeforeUnload();"> 27 ChromeFrame full tab mode unload event test. 28 Validates that page unload events are received in ChromeFrame. 29 </body> 30 </html> 31