View Full Version : Complicated Redirect Script For Iframes....


Xarcell
12-21-2003, 04:06 AM
Is it possiable to have a script that will redirect a page in an iframe to another page within the iframe after a person goes idle?

Say like, a person is reading on my site. Then they get distracted and tsart chatting on AIM. Let's say after they are idle after 60 sec's or so, it redirect back to the homepage.

-Xarcell

Loren
12-21-2003, 07:59 PM
Well you could use a meta redirect with time as 60.


<meta http-equiv="refresh" content="60; url=your new address.html">

hockyfan641
12-21-2003, 08:44 PM
Yes, but that would redirect no matter if the person went idle or not. This can be done with a server side language I'm sure, possible with js.

Loren
12-21-2003, 09:48 PM
Sorry, I thought they would be clicking links to different pages so that if they weren't clicking links they would be idle.

Xarcell
12-25-2003, 02:40 PM
You know what, that's a good idea...

I already use that tag, but I think think to use it like that.

I could set it for 600 seconds maybe? That's 10 minutes, and yeah, if they aren't clicking links, it would be the same as being idle.

There isn't a whole lot to read on the pages, 10 minutes would be plenty of time.

Thanks dude...

-Xarcell

Loren
12-25-2003, 02:44 PM
you're welcome.