I don't want a it loading in a new windows?!

liunx

Guest
I have this script below which is a simple redirection code so after a couple of seconds after the loading of the page it will re-direct itself to another page. My only problem is the re-direction actually opens the directed page in a new window. I just want it to open up in the same frame. Can anyone tell what I need to add to stop it opening the re-direction in a new window.<br />
<br />
Thanks in advance.<br />
<br />
<html><br />
<head><br />
<br />
<meta http-equiv="Content-Language" content="en-gb"><br />
<br />
<script type="text/javascript" language="javascript"><br />
<!--<br />
var time = 2; // delay in seconds;<br />
<br />
function redir(){<br />
timer = setTimeout("go()", (time * 1000));<br />
}<br />
<br />
function go(){<br />
open ("http://www.spinnershomepage.co.uk/mainpage.html#poll","");<br />
}<br />
<br />
//--><br />
</script><br />
<br />
</head><br />
<BODY onload="redir()" bgcolor="#000000"><br />
<div align="center"><br />
<center><br />
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber1" height="570"><br />
<tr><br />
<td width="100%" height="570"><br />
<p align="center"><font face="Arial" color="#0000FF" size="4">Please <br />
wait...</font></td><br />
</tr><br />
</table><br />
</center><br />
</div><br />
</body><br />
</html><!--content-->Here's the modified script part:<br />
<br />
var time = 2; //delay in seconds;<br />
<br />
function redir(){<br />
timer = setTimeout("go()", (time * 1000));<br />
}<br />
<br />
function go(){<br />
window.open("http://www.spinnershomepage.co.uk/mainpage.html#poll","_self");<br />
}<!--content-->That's great thanks. As you would have probably guest this is all related to the other problem which I described in my other post. I am having trouble still though getting the web service which handles my poll to get them to use this new "processing" page to be used when refreshing the poll.<br />
<br />
Looking at the .jpeg file I attached in my other thread what would the code have to be to get this "processing" page to load up after the poll is refreshed?<br />
<br />
Thanks again for any help you can give. I appreciate it.<!--content-->
 
Back
Top