Software QA FYI - SQAFYI

Popup Blocker Test - P_BODY_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 BODY tag.


Click here to start P_BODY_ONUNLOAD test...


HTML and JavaScript Codes Used by This Test

<body onunload="pBodyOnunloadTest();">
...

<script language="JavaScript">
/*
*  Popup Blocker Test - P_BODY_ONUNLOAD
*  - Popup Window 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 BODY tag.
* 
*  Version of 2007.01.01
*  Download at http://sqa.fyicenter.com/tools/
*  Copyright (C) 2007 FYIcenter.com. All rights reserved.
*/
function pBodyOnunloadTest() {
   fyicenterWin = window.open('', 'Popup', 'toolbar=no,scrollba...
   fyicenterWin.document.write('<html><body bgcolor="#eeeeff">'...
   fyicenterWin.document.write('<p><b>P_BODY_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>


Popup Blocker Test - Popup Windows Triggered by Page Unloading Events