Click to See Complete Forum and Search --> : Need help with JavaScript


kimpee1
06-04-2003, 11:56 AM
I just downloaded one of the password protect javascripts to use in my webpage. The script works fine but I don't see a timeout happening when i test the script and I need the page to timeout maybe after 5 minutes to deter anyone from downloading files on this page. Do I need to add something to my script to make it timeout? How do I accomplish this? Any help would be sooo appreciated, I'm kinda anxious to get this resolved.

Jona
06-04-2003, 11:59 AM
It would be good if you posted some code. Also, realize that users can get the passwords easily.


setTimeout("location.href='exit.htm'", 5000);


Jona

Jona
06-04-2003, 10:05 PM
OK, add *60 after the last zero in the above code. :D

Thanks Dave,
Jona