JavaScript Popup Windows Generation and Testing Tutorials

By dzone


JavaScript Popup Windows Generation and Testing Tutorials

Tests on Popup Windows Triggering Methods

P_LINK_ONMOUSEOVER – Popup Windows Triggered by Mouse Moving Over Links

A popup window shows up when you move your mouse over a hyper link.
JavaScript codes implemented on the onmouseover event of any type of link tag.

P_LINK_ONCLICK – Popup Windows Triggered by Mouse Clicking on Links

A popup window shows up when you click your mouse on a hyper link.
JavaScript codes implemented on the onclick event of any type of link tag.

P_BODY_ONLOAD – Popup Window Triggered by Page Loading Events

A popup window shows up when a page is loaded into the browser.
JavaScript codes implemented on the onload event of the BODY tag.

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.

P_HEAD_ONLOAD – Popup Window Triggered by Page Loading Events

A popup window shows up when a page is loaded into the browser.
JavaScript codes implemented in the HEAD tag directly.

P_WINDOW_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 window object.

Tests on Types of Popup Windows

P_WINDOW_OPEN – Popup Windows in Forms of Browser Windows

A popup window shows up in the form of a browser window.
JavaScript codes implemented to call the code method.

P_SHOWMODELESSDIALOG – Popup Windows in Forms of Modeless Dialog Boxes

A popup window shows up in the form of a modeless dialog
box. JavaScript codes implemented to call the
showModelessDialog method.

P_SHOWMODALDIALOG – Popup Windows in Forms of Modal Dialog Boxes

A popup window shows up in the form of a modal dialog
box. JavaScript codes implemented to call the
showModalDialog method.

P_WINDOW_PROMPT – Popup Windows in Forms of Prompt Dialog Boxes

A popup window shows up in the form of a prompt dialog
box. JavaScript codes implemented to call the prompt method.

P_WINDOW_COMFIRM – Popup Windows in Forms of Confirmation Dialog Boxes

A popup window shows up in the form of a confirmation dialog
box. JavaScript codes implemented to call the confirm method.

P_WINDOW_ALERT – Popup Windows in Forms of Alert Dialog Boxes

A popup window shows up in the form of an alert dialog
box. JavaScript codes implemented to call the alert method.

Tests on Popup Windows with More Complexities

P_WINDOW_SETTIMEOUT – Popup Windows Triggered after Waiting Periods

A single popup window shows up 10 seconds after the
page is loaded into the browser. JavaScript codes
implemented with a setTimeout method call.

P_WINDOW_SETINTERVAL – Popup Windows Triggered at Fixed Time Intervals

A series of popup window shows up with a fixed time
interval (3 seconds) after the page is loaded into the browser.
JavaScript codes implemented with a setInterval method call.

P_WINDOW_FULLSCREEN – Popup Windows Triggered as Full Screen Windows

A single popup window shows up occupying the entire
screen. A full screen window is very hard to close.
JavaScript codes implemented with a code method call.

P_WINDOW_ANIMATED – Popup Windows Shows up in Animated Fashions

A single popup window shows up an animated fashion.
JavaScript codes used to resize the window continuously.

P_WINDOW_CHROMELESS – Popup Windows Triggered in Customized Formats

A single popup window shows up in a chromeless format developed by Mariano Klein, http://www.chromeless.org/.
JavaScript codes used to customize all aspects of the popup window.

P_WINDOW_REOPEN – Popup Windows Open Again If They Are Closed

A single popup window that will open again if you close
it. JavaScript codes used to check the closed status.

Browser JavaScript Performance Tests

Performance Test – Numeric Calculation – AMS1K Test

AMS1K (Addition, Multiplication and Subtraction of 1K-iterations) test
performs 1K (1000) iterations of additions, multiplication and subtraction on two arrays of 1000 elements.

Performance Test- Popup Window – POC100 Test

POC100 (Popup Open and Close 100 iterations) test
performs 100 iterations of opening and closing a popup window.

Leave a Reply