brown2005 Posted December 8, 2006 Share Posted December 8, 2006 Hi, What I have is a form<form method='post' action='2.php'><input type='hidden'><input type='submit'></form>what i want is say a 20 second countdown on the form before the submit button is active...ne ideas please? Link to comment https://forums.phpfreaks.com/topic/29931-timer-and-button/ Share on other sites More sharing options...
tomfmason Posted December 8, 2006 Share Posted December 8, 2006 I suggest that you do some research on the subject. Look for setTimeout and setInterval. Try google[url=http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2006-38,GGGL:en&q=javascript+settimeout]javascript setTimeout[/url][url=http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2006-38,GGGL:en&q=javascript+setinterval]javascript setInterval[/url]We will be more then happy to help when you actually have some code.Tom Link to comment https://forums.phpfreaks.com/topic/29931-timer-and-button/#findComment-137585 Share on other sites More sharing options...
fenway Posted December 9, 2006 Share Posted December 9, 2006 What you actually need is a fake button that calls a onclick hander that deal with timeouts. Link to comment https://forums.phpfreaks.com/topic/29931-timer-and-button/#findComment-137910 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.