Override HTML Anchor Link Target inside iFrame
- by wag2639
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?