Click to See Complete Forum and Search --> : popup window problem


carolinaadi
08-28-2003, 04:14 PM
I am using the popup window maker found at http://javascript.internet.com/generators/popup-window.html

I am using it as a window to signup for my newsletter. How do I create a 'close window' link in the popup?

Also, is there a way to prevent the popup from appearing everytime a regular visitor comes to my homepage?

thanks,
Jeremy

David Harrison
08-28-2003, 04:18 PM
For the close window link you can have this:

<a href="#" onclick="window.close();return false;">Close Me</a>

And for not popping up for regular visitors you will need to use either cookies or some sort of server side code, neither of which I know much about.

AdamGundry
08-28-2003, 04:21 PM
You shouldn't be showing unrequested popups at all. Put your newsletter signup in the same window as everything else - that way you comply with accessibility legislation, and make sure you get your message to all users, including those with JS disabled or popup blockers.

Adam