Sunday, 14 June 2015

Timer in VB Script

<script language="vbscript">
alert("Click to start timer.")

x=Timer
document.write(x)
alert ("Click to end timer.")
y=Timer-x

alert ("Elapsed Seconds: " & y)

</script>

Instructions :-
  1. Copy this above code and paste it in notepad
  2. Save it with an extension .html
  3. Run it on Internet Explorer only.It might not work on other browser as they do not support vb language.

No comments:

Post a Comment