1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Help... need redirect page to open in parent window

Discussion in 'Software Development' started by Trooper_fan, Sep 11, 2004.

Thread Status:
Not open for further replies.
  1. Trooper_fan

    Trooper_fan Thread Starter

    Joined:
    Nov 20, 2003
    Messages:
    800
    My website consists of a main page with a frame in it to which the pages load but I need to get one page to load in a parent frame... where to I need to put the target="parent" bit in this code to get it to do that instead of open in the frame??

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <script type="text/javascript">
    <!--
    function delayer(){
    document.location = "ijnj0001xxxp.htm"
    }
    //-->
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body onLoad="setTimeout('delayer()', 5000)" bgcolor="#000000" text="#FFFFFF" link="#FF0000" vlink="#FF0000" alink="#FF0000">
    <div align="center">
    <table width="575" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
    <td width="700" height="241" valign="top"><p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <p align="center"><img src="p_grap/ahr062.gif" width="700" height="8"></p></td>
    </tr>
    </table>
    </div>
    </body>
    </html>
     
  2. mark007

    mark007

    Joined:
    Sep 15, 2004
    Messages:
    40
    Try replacing:

    document.location = "ijnj0001xxxp.htm"

    with:

    window.parent.location = "ijnj0001xxxp.htm"

    :)
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/272981

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice