Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: a href parent??

  1. #1
    Regular Coder
    Join Date
    May 2004
    Posts
    391
    Thanks
    76
    Thanked 0 Times in 0 Posts

    a href parent??

    How do I get the parent document to change from within an iframe. I tried the below but it won't work.

    <a class='results' javascriptarent.location.href=Edit.php?orderid=$line[id]>$line[id]</a>

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Code:
    <a class='results' href="#" onclick="parent.location.href='Edit.php?orderid=$line[id]'; return false;">$line[id]</a>
    or better without scripting at all.
    Code:
    <a class='results' href="Edit.php?orderid=$line[id]" target="_parent">$line[id]</a>
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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