Timing an onClick event

E

EviL KerneL

Hi -

I have an onClick event in place that switches an button's label to
please wait upon clicking. Problem is, the page on which I am
implementing this event is also running validion to make sure certain
fields are filled.

The problem I am running into is that when the button label's changes
to "Please Wait..." and the page does not change because the user
forgot to fill out one of the fields, the button stays that way and it
does not go back to its original label ("Next"). Because of this, the
user is getting confused and does not know what to press since there
is no Next button anymore.

Is there a way to time this event so that it goes back to its original
label after say, 3 seconds? I was trying to use onBlur but that would
only change the button if the user clicks somewhere else on the page
so it would not serve the purpose.

any help would be greatly appreciated.

Thanks!
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top