0

hi
i have a application where i want the user to click the button only once.i want the user to have time interval(eg 5 sec,before tat if he tries to clickit should display pop -up
thanks

3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by queenc
0

hi
i have a application where i want the user to click the button only once.i want the user to have time interval(eg 5 sec,before tat if he tries to clickit should display pop -up
thanks

This really is a JavaScript question. Controlling user initiated Events on the browser can be done by one of the browser scripting languages such as JavaScript, Flash, JScript, VBScript etc. JavaScript is the most supported.

So with JavaScript, you will place an onclick event handler on the button. The event handler is a function that will be executed when the event occurs (such as clicking the button).

the function will save the time the button was clicked, and if it had been clicked less then 5 seconds before, it should do nothing.

You can also have the function disable the button, and enable it 5 seconds later. This can be done with setTimeout() function.

0

hmmmm........
i want the time interaval between the two click as five sec.when the user click the first time it should redirect him to another page,second time it should alert a message

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.