Popup Blocker Test - P_WINDOW_ONUNLOAD
- Popup Windows Triggered by Page Unloading Events - Developed by FYIcenter.com
Popup Behavior: A single popup window shows up when a page is unloaded from the browser
under different user actions like clicking any links on that page, or clicking the browsere back or refresh button.
Source Code Note: JavaScript codes implemented on the onunload event of the window object.
Click here to start P_WINDOW_ONUNLOAD test...
HTML and JavaScript Codes Used by This Test
<script language="JavaScript">
/*
* Popup Blocker Test - P_WINDOW_ONUNLOAD
* - Popup Windows Triggered by Page Unloading Events
*
* A popup window shows up when a page is unloaded from the
* browser. JavaScript codes implemented on the onunload
* event of the window object.
*
* Version of 2007.01.01
* Download at http://sqa.fyicenter.com/tools/
* Copyright (C) 2007 FYIcenter.com. All rights reserved.
*/
window.onunload = pWindowOnunloadTest;
function pWindowOnunloadTest() {
fyicenterWin = window.open('', 'Popup', 'toolbar=no,scrollba...
fyicenterWin.document.write('<html><body bgcolor="#eeeeff">'...
fyicenterWin.document.write('<p><b>P_WINDOW_ONUNLOAD Test</b>'...
fyicenterWin.document.write(' - Popup Window Triggered by Pa...
fyicenterWin.document.write(' - Developed by FYIcenter.com</...
fyicenterWin.document.write('<p><img src="popup_test_fyicent...
fyicenterWin.document.write('If you see this popup window, y...
fyicenterWin.document.write('</body></html>');
fyicenterWin.document.close();
}
</script>
|