English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi all, does anyone know a way to disable a button after x minutes after pageload? Preferably also with a visual counter like (x minutes to go) . It's for a timebased test im creating. Thanks in advance

2007-06-11 03:38:30 · 2 answers · asked by rystest 2 in Computers & Internet Programming & Design

2 answers

1. set the time to countdown, initiate current time,
2. flag finish loading of page by a script line just before
3. build function for disable button
4. build function for recursive time check and update label
5. make form for button and label

Put the following between the tags


put the following between the tags




Time left before button become disabled




To see a demo which illustrate the above with IE, mozilla & Opera use this link http://www.freewebs.com/swhtam/YA/disableButton.html

2007-06-14 17:48:41 · answer #1 · answered by AQuestionMark 7 · 0 0

If you're intending to disable it for a variety of page viewers (not just yourself, for testing purposes) then you may be searching for space, the final frontier, considering that "x minutes" will differ depending upon connection speed, computer power, browser screen refresh rate, other activities on the particular computer at the given moment, and other unpredictables...

2007-06-11 14:16:55 · answer #2 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers