/    Sign up×
Community /Pin to ProfileBookmark

popup window problem

I am using the popup window maker found at [url]http://javascript.internet.com/generators/popup-window.html[/url]

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

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonAug 28.2003 — 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.
Copy linkTweet thisAlerts:
@AdamGundryAug 28.2003 — 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
×

Success!

Help @carolinaadi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...