Link to home
Start Free TrialLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

how can I create a temporizer in Javascript to redirect my page to another?

Hello Guys

I have a page and it must be open for 5 minutes and after this, it need to load another page or close it. How can I do this in javascript ou jquery?

thanks
Alex
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hidrau

ASKER

Hi, this settimeout, can I determine the time?
5 * 60 * 1000 = 5 minutes

setTimeout( what2run, delay_in_Milliseconds )
Avatar of hidrau

ASKER

Hi leakim971

is It possible to close the window unless to load another page?

no page no javascript, you can't say : run this in five minutes but for now close.
Avatar of hidrau

ASKER

thanks very much
You're welcome! Thanks for the points!