Quetion about iframe attributes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • musicmaster890
    New Member
    • Apr 2008
    • 11

    Quetion about iframe attributes

    Hey everyone!

    I'm working on a project that involves iframes, and I've included an "Unpin" button that will open up the current iframe's 'src' attribute in a new window, however I've discovered that it will open up the window just fine, but the location of the window is the iframe's original location when the link was clicked, not it's current location.

    I'm guessing that I should be using a different attribute instead of src when unpinning the iframe, but I dont know what it is. Thanks.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    try the iframe's location.href javascript property instead ...

    kind regards

    Comment

    Working...