JavaScript Timer to show layer in Dreamweaver

J

Jim

How do I create a javascript timer to do the following:

After the "submit" button is clicked on the website, wait 5 seconds and
then show the button named "continue."

Any help would be greatly appreciated!!!
 
S

SCDeveloper

Assuming that you are submitting data from PageA to PageB. On PageB,
add setTimeout.

In the following example it waits for 5000 milliseconds before it runs
the SomOtherActions() function.

self.setTimeout('SomeOtherActions()', 5000);


SCDeveloper
http://www.sharingcorner.com
 
D

Dr John Stockton

JRS: In article <[email protected]>,
dated Mon, 16 May 2005 06:19:30, seen in
SCDeveloper said:
Assuming that you are submitting data from PageA to PageB. On PageB,
add setTimeout.

In the following example it waits for 5000 milliseconds before it runs
the SomOtherActions() function.

self.setTimeout('SomeOtherActions()', 5000);

No, it waits for 5000 milliseconds or a bit more. In some
circumstances, the inaccuracy of setTimeout and setInterval can be
important.


For proper quoting when using Google for News :-
Keith Thompson wrote in comp.lang.c, message ID
<[email protected]> :-
If you want to post a followup via groups.google.com, don't use
the "Reply" link at the bottom of the article. Click on "show options"
at the top of the article, then click on the "Reply" at the bottom of
the article headers.
 
J

Jim

OK, I'm really a newbie with this. I understand the setTimeout
function, but how do I show the layer named "btnCont" after 5000ms?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top