PDA

View Full Version : JavaScript Question


nick
09-08-2001, 12:18 AM
<SCRIPT language="javascript">
window.open("http://yahoo.com","privacy","scrollbars=no");

function go()
{
privacy.location.replace('http://www.go.com');
}
</SCRIPT>

<a href="#a" onclick="JavaScript:go();">go</a>

I'm trying to replace the location of the new window that was opened. I don't want to use:
privacy = window.open(blah)
privacy.location.replace
Is there a way to fix the above script and not resort to using this one? I'm trying to alter the location of a window that's already opened...

richard123
09-08-2001, 08:14 AM
The most useful place I have found to look is:
http://developer.irt.org/script/script.htm


Specifically in your case maybe:
http://developer.irt.org/script/window.htm