Site hosted by Angelfire.com: Build your free website today!
Tell me when this page is updated
E-mail this page to a friend
Angelfire Logo
Free Homepages, MP3s, Email, Games
Homepages MP3s Email Games


http://bignosebird.com/js/h45.shtml

Question: How can I make a window open up automatically the first time a visitor stops by a page?
Can I reset it so that repeat visitors will see the window if I update the information in the window?

Answer: Here is a small JavaScript that will allow you to greet first time visitors to your site with a pop-up window.
If you ever need to update the information contained in popwin.html, simply rename the cookie.

As an example, in the code below, it is called COOKIE1.
To make it so that nobody has ever been to your site before, change both occurrences of COOKIE1 to COOKIE2 and so on...

If you do not see the pop-up window on this page it is because you have already been here. ;-)

View Source for source code

Be certain when copying the source code -- into the document between </HEAD> and <BODY> to keep the very long line below intact.
You will get an error if you split the line.
Have some fun, play with the various options such as height, width, and scrollbars!