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.
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
Offline 1,250 posts
since Sep 2005