spicymango
Programmer
I see someone doing the following
I wonder why they use
top.location.replace
they could have use
window.location="
is there any difference between these two? They should produce the same results right?
Code:
<SCRIPT LANGUAGE="JavaScript">
function refresh ()
{
top.location.replace("[URL unfurl="true"]http://www.mydomain.com/pages/home/main.shtml");[/URL]
}
</SCRIPT>
</HEAD>
<BODY onLoad="refresh()">
</BODY>
I wonder why they use
top.location.replace
they could have use
window.location="
is there any difference between these two? They should produce the same results right?