Results 1 to 4 of 4

Thread: FRAMES? HELP!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    20

    Lightbulb

    Dear Reader,
    I have an ASP page which is divided into two frames vertically. The left frame name is "left" and the right frame name is "right".

    In the "left" frame i have a .htm file which contains a hyperlink to another .htm file named "newfile.htm". This "newfile.htm" is again a file which is subdivided into two frames. The problem i am facing is that when i click on the link in the link in the "left" frame the "newfile.htm" opens in the "left" frame itself. What i want is that
    1) The "newfile.htm" should occupy the whole window.

    2) Also what if i want to load the "newfile.htm" file in a new window.

    Any Code would be of great help.

    Thanks for reading.


  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Sure thing.

    1. In order for you to open a link in the right frame, you have to specify the target attribute of the <A tag, i.e:


    <A HREF=MyFile.htm target=right>Link to my file</A>


    2. If you want to open your link in a new window, then again you'll have to specify a target for it:


    <A HREF=MyFile.htm target=_new>Link to my file</A>


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    20

    Help?

    The problem is not that i want to open the page in the right window but the new page called should occupy the whole window i.e. replace the existing window containing the frames.


  4. #4
    Guest
    Try one of these:
    <A HREF=MyFile.htm target=_Top>Link to my file</A>
    <A HREF=MyFile.htm target=_Self>Link to my file</A>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width