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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript redirect doesn't work in IE on XP

Status
Not open for further replies.

rrsub

MIS
Oct 23, 2002
536
US
I have an HTML page with an <iframe>.
The iframe has a form and based upon the success of the form, I want the '_parent' to redirect to another site. The only browser it doesn't work on is IE on XP (test version is SP2).

Is there a way around this?

 
Code:
        <script language="Javascript">
        parent.location.href="../signup.php";
        </script>

 
I added

<script language="JavaScript" type="text/JavaScript">

And it still doesn't help.



 
If the page you want to change to is in the same folder/directory, try:

top.location.href="signup.php";

Lee
 
The desired file is up a level and I did try the "top.location.href" and it didn't work.

I can't imagine it's the iframe tag:

Code:
<iframe src="./page/if_signin.php" width="365" height="172" frameborder="0" scrolling="no" name="oFrame" id="oFrame">

%% HTML CODE for older browsers identical to iframe default %%

</iframe>


 
I think it's IE automatically blocking it and not notifying the user because it's in an iframe.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top