Home : Visit Our Store : Latest Specials : Recommend Us
Contact Us :
Support Forum : Multiple Domain Discount
 
Popup Closer - Timer
Go to www.cgiscript.net for more free tools!

Description:
Use this code to get a popup window to close after a pre-determined amount of time. For example, set an advertisement popup window to remain open for 15 seconds, then it automatically closes.
Directions:
Follow Steps 1 and 2 below. Use the 'Grab Text' buttons to select the code within the adjacent textarea. Then use Control-C or Edit -> Copy to buffer the text for pasting into your document.

Step 1: This code is placed between the <head> and </head> tags within the window that is opened (the popup window).

The length of time you want the window to remain open is set with the variable StayAlive.

Then use Control-C to copy the text into your web page.

Step 2: Add the following code to the <BODY> tag of the popup window. ( ex. <body onload="KillMe();self.focus()"> )
Note:
self.focus() ensures the popup window appears on top of all other windows.

Then use Control-C to copy the text into your web page.


Home
| Recommend Us | Contact Us
Copyright ©  WWW.CGISCRIPT.NET, LLC.