/    Sign up×
Community /Pin to ProfileBookmark

Pop up Script needed!

Hi,

Does anybody have a pop-up script that makes the pop-up,
pop up 15 seconds AFTER the page has loaded…

Much appreciated,

Neil.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@pyroOct 27.2003 — You can use [URL=http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1203758]setTimeout()[/URL] to make it wait.
Copy linkTweet thisAlerts:
@mkpublicationsauthorOct 27.2003 — Thanks for this info., but I'm a complete novice - could you tell me how I adapt the popup script i use (below) to include setTimeout() ? Thanks and much appreciated.

<!-- Begin

function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=500,left = 312,top = 134');");

}

// End -->


<A HREF="javascript:popUp(URL)>
Copy linkTweet thisAlerts:
@pyroOct 27.2003 — Use something like this:

setTimeout("popUp('http://www.w3c.org'), 15000);You might also want to look at http://www.webdevfaqs.com/javascript.php#popup or http://www.webdevfaqs.com/javascript.php#centeredpopup for better popup code.
×

Success!

Help @mkpublications 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 5.15,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...