A Self-Closing POP-UP Window!

If you must have a POP-UP Window, why not have it close in a reasonable time? Aren't you sick of seeing unwanted Windows popping-up trying to get you to buy something! And, they stay opened until YOU close them. HOWEVER....

My friend Ron Pumphrey helped me make this script more agreeable, have the pesky little window close all by itself! And, you get to pick the amount of time it stays opened too. Life is sweet! Thanks Ron!

This code will work equally well in both browsers. Just use this line of code for the < BODY > tag of the Pop-Up.
< body onLoad="setTimeout(window.close, 7000)" >

(Note: The 7000 equals seconds before closing, if you need 20 seconds use 20000.)

Return to Menu