Connecting Tech Pros Worldwide Forums | Help | Site Map

Quetion about iframe attributes

Newbie
 
Join Date: Apr 2008
Posts: 11
#1: Jun 28 '08
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's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,134
#2: Jun 29 '08

re: Quetion about iframe attributes


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

kind regards
Reply