Results 1 to 4 of 4

Thread: Open Link in frame

  1. #1
    Join Date
    Dec 2005
    Posts
    28
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Open Link in frame

    Hi

    How I am working in a frame and i want the link below to open in frame "main".
    Can anyone help please ...

    Code:
     echo  "<a href=http://somewhere.com/{$row['View']}>View</a>";
    Last edited by Feckie; 04-13-2009 at 05:41 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Use the target attribute:
    PHP Code:
    echo  "<a target='main' href=http://somewhere.com/{$row['View']}>View</a>"
    Good luck!

  3. #3
    Join Date
    Dec 2005
    Posts
    28
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Snookerman View Post
    Use the target attribute:
    PHP Code:
    echo  "<a target='main' href=http://somewhere.com/{$row['View']}>View</a>"
    Good luck!
    Many Thanks that perfect

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!
    You can go to your first post in this thread, click then click Go Advanced and add the Resolved prefix to the thread title.
    This will let other users know the problem has been solved.

    Good luck with your site!

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
  •