Script Categories

Menus and Navigation >>> Delayed Popup.

Automatically opens a new popup window a given number of seconds after the page finishes loading. The script can optionally be configured to close the window after a few seconds.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview =, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);

function doPopup() {
url = "";
width = 667;  // width of window in pixels
height = 403; // height of window in pixels
delay = 2;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
//  End -->

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).