OZONE Asylum
Forums
DHTML/Javascript
Javascript problem
This page's ID:
27992
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
ok i have this code which opens a centralised new window with the home page then sets the browser to refresh after 5 seconds to the home page [code]<script language="Javascript"> function Redirect() { window.location="home.htm"; } function NewWindow() { left=(700-screen.width)/2; top=(150-screen.height)/2; window.open("home.htm", "main", "resizable=1,HEIGHT=423,WIDTH=700,left=150,top=150,screenX=left,screenY=top"); Refresh=setTimeout("Redirect()",5000); } function Stopit() { clearTimeout(Refresh); } </script>[/code] then in the body tag on the "home.htm" page [code] onload="javascript: window.opener.Stopit()"[/code] the idea of this (incase its not obvios) is so that if the window doesnt open for some reason then the browser will go to the homepage anyway alright so anyway. My problem is, it doesn't work in IE i found it works fine on other browsers i tested it on but not IE for some reason and i have no idea why first off the popup doesnt come up, and then it doesnt redirect either any help appreciated
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »