Override HTML Anchor Link Target inside iFrame
Posted
by wag2639
on Stack Overflow
See other posts from Stack Overflow
or by wag2639
Published on 2010-03-23T04:31:52Z
Indexed on
2010/03/23
4:41 UTC
Read the original article
Hit count: 525
iframe
We're calling an ad from an ad network to dynamically load an add using JavaScript. It makes an iFrame with the actual ad in it, a picture wrapped in an anchor tag with the target=_top. Is there a way from our page to change its target and capture the attempt to change our page.
Also, our page is loaded in a C#.net program using a WebControl (I forget the actual control being used since it was a while ago).
We can change the C# code but we really prefer not to because then we'd have to test it and everything. Is there a way to do this with JavaScript or JQuery?
© Stack Overflow or respective owner