| | |
button submit
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
•
•
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
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.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- Automate undisabled a “submit button”? (ColdFusion)
- how to set default button if there are more than one submit buttons in Firefox (JavaScript / DHTML / AJAX)
- why won't my print button work (JavaScript / DHTML / AJAX)
- To disable Submit button (PHP)
- code to activate submit button (Perl)
- Question about submit form (HTML and CSS)
- ASP.NET and Mozilla - Issues! (ASP.NET)
- Automating survey results to email on submit. (Java)
- php wont submit data into the database (PHP)
Other Threads in the PHP Forum
- Previous Thread: is it possible to capture images using php
- Next Thread: multiple parameter search
| Thread Tools | Search this Thread |
advanced ajax apache api array basics beginner binary broken cakephp check checkbox class cms code combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert integration ip java javascript job joomla js limit link login loop mail menu mlm multiple mysql oop parse password paypal pdf php problem procedure query radio random recursion regex remote script search server sessions smarty smash sms soap source space sql stored syntax system table traffic tutorial unicode update upload url validator variable video web xml youtube






