Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window.location prob

Status
Not open for further replies.

JazzLeg

Programmer
Aug 22, 2002
63
GB
Hello,

This is a little peculiar, but i need to redirect to another page as soon as the first page is opened.

I have this code which works in IE but not beloved Netscape

I have put this in the head tags:

Code:
<script language=&quot;JavaScript&quot;>
<!--
window.location = &quot;[URL unfurl="true"]http://www.mysite.asp&quot;;[/URL]
-->
</SCRIPT>

Can anyone help me?
Thanks
 
<script language=&quot;JavaScript&quot;>
<!--
window.location.href = &quot;-->
</SCRIPT>

=========================================================
while (!succeed) try();
-jeff
 
I found that it only worked in netscape when I took out the '<!--' and '-->' ?????

Thanks for your help.
 
oh, you need to use a js comment before &quot;-->&quot;

<script language=&quot;JavaScript&quot;>
<!--
window.location.href = &quot;//-->
</SCRIPT>



=========================================================
while (!succeed) try();
-jeff
 
I have to do the same thing. Many pages we have link to a static html page and I didn't want to redo all the links to my ASP page. I just replaced the static html with a meta refresh tag and that did the trick.

<META HTTP-EQUIV=&quot;refresh&quot; content=&quot;2;URL=http://www.yoursite.com/newpage.htm&quot;>


The 2 is the number of seconds until the page changes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top