Link to home
Create AccountLog in
Avatar of amillyard
amillyardFlag for United Kingdom of Great Britain and Northern Ireland

asked on

javascript timer not opening alert window

I have the attached code within an .aspx page -- between the <head> statements

the effect I was hoping for is that an alert window would open after 1 minute (will set to a longer period once working)....but nothing happens after a minute
<script type="text/javascript>
function SessionAlert()
{
alert("Your Session will time out in 5 minutes");
}
setTimeOut("SessionAlert", 1 * 60 * 1000);
</script>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of amillyard

ASKER

thank you for the contributions -- but none of the above is working  (getting an object load error within browser status bar)
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
b0lsc0tt:
hielo:

thank you both for your excellent repsonse and energy to resolve...I think there should be a new olymipic event -- sprint programming, obviously your fingers are super nimble...as I bearly had pressed the submit button to send this request for help out !  :-)   much apprieated.
Hielo,
>> LOL. Looks like we still missed something. <<
Good catch on it.  That type of errror always irritates me because it seldom seems to produce a good error.  Definitely nothing nice like "Bad attribute in script tag."  I guess that would make it too easy and take away some of our fun. ;)

amillyard,
Your welcome!  I'm glad I could help.  Thanks for the grade, the points and the fun question.

bol