I am developing an exam online, and need to have a timer on the page, to count backwards from 15 mins to 0, displaying the minutes left. Is there any way to do this in HTML or VBScript?<br><br>Thanks in advance )<br><br>
You can use the window.setTimeout() function to wait sixty seconds, increment a counter, display how many minutes are left... when the counter gets to fifteen you can then act accordingly
its done primarily in javascript, however I'm pretty sure it works in VBscript. Although it's bad for performance, you can have both JScript & VBscript running on one page. Also, if you're only supporting IE, try setInterval, otherwise you have to call the setTimeout within the function you are calling with it (if you need some help, I'll send you to a url you can see this at work)<br><br><br><A HREF="mailto:jared@aauser.com">jared@aauser.com</A>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.