View Full Version : How to... Popup on load + timed close of popup?

G E C K O 5
07-16-2003, 02:12 PM
Hi All,

I have a registration form that, on submit redirects to a specific page with information. I would like to have a popup appear when this page loads to thank the user, however i would like this popup to automatically close in say 6 seconds or so. Can this be done?

Any info would be greatly appreciated :)

On a sidenote, how would i go about applying 2 functions on the same attribute of the BODY tag? (I.E. I would like to have "Preload Images" and another function fire on "onLoad" of the body tag. What type of syntax will allow this?

I have tried
onLoad="newWindow()" "MM_preloadImages()" but that doesn't work. I have also tried
onLoad="newWindow()" onLoad"MM_preloadImages()" but that doesn't work either?

Thanks Again,

07-16-2003, 03:12 PM
First Question
in the popup window have the following line to close it within six seconds.

<body onload="setTimeout('window.close()', 1000*6)">

Second Question
You need to seperate them with commas or create a new function to call them

onLoad="newWindow(); MM_preloadImages();"


function onLoadFunc() {