Results 1 to 5 of 5

Thread: Frame

  1. #1
    Join Date
    Oct 2007
    Location
    Chennai - India
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Frame

    Hi

    I used the following code

    HTML>
    <HEAD>
    <TITLE>Welcome to View Profile</TITLE>
    </HEAD>
    <FRAMESET ROWS="*,1" >
    <FRAME SRC="../profile.php?mem_id=2">
    <frame src="UntitledFrame-4"></FRAMESET><noframes></noframes>
    </HTML>

    Now the url open in this frameset, Now I cant come out from this frameset. anybody knows this, let me how to come out from this.

    I used this code, when i register in my site, we create sperate folder each user.
    Example : www.sitename.com/balu

    So all the code open in this folder only. so how to come out from this folder.
    Last edited by balusamy; 05-06-2008 at 07:00 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The way to link to a different page from within a frameset and to have that page take over the whole window or tab (if the browser is using tabs) is to use the target="_top" attribute on the link, ex:

    HTML Code:
    <a href="some_page.htm" target="_top">Some Page</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    balusamy (05-06-2008)

  4. #3
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    In the <head> tag of that page, just put
    Code:
    <base target="_top">
    and it'll break out of frames for every link.

    For just one link, add target="_top" into the <a> tag.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. The Following User Says Thank You to tech_support For This Useful Post:

    balusamy (05-06-2008)

  6. #4
    Join Date
    Oct 2007
    Location
    Chennai - India
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Hi jscheuer1

    Thanks for your help

    Regards
    Balusamy

  7. #5
    Join Date
    Oct 2007
    Location
    Chennai - India
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Hi tech_support

    Thanks for your help

    Regards
    Balusamy

Bookmarks

Posting Permissions

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