PDA

View Full Version : Use javascript to open iframe links in new window?



bswb97
Mar 1st, 2013, 08:59 PM
For my brand's site, I want to embed our ecommerce page (from Bootic.com) into my WordPress site's product pages. I'm attempting to do this with iframes. For links within the iframe, I want them to open up in a new window/tab.

Now, since the iframe source is on a different domain, I have no access to the HTML. Is it possible to accomplish this using javascript?

Additionally, I'm looking at the option of using a lightbox overlay rather than an iframe embed. Same question here -- can I use javascript for links on the lightbox to open up in a new window/tab?

felgall
Mar 1st, 2013, 10:18 PM
Now, since the iframe source is on a different domain, I have no access to the HTML. Is it possible to accomplish this using javascript?

Now, since the iframe source is on a different domain, you have no access to interact with it using JavaScript.

rnd me
Mar 1st, 2013, 11:41 PM
<iframe seamless>