[BNM] Links, Iframes, RSS and target="_blank"
Dan Eastwell
daneastwell at gmail.com
Wed Jul 4 09:41:24 BST 2007
What about adding a click event to all "a" tags within the iframe?
On 7/3/07, Steve Esson <stevee at gmail.com> wrote:
>
> On 03/07/07, Dan Eastwell <daneastwell at gmail.com> wrote:
> >
> > It's something of a relief you didn't have to use an iframe. Not that
> > they're the worst thing on earth - you just get problems like not being
> > able
> > to control part of your page with javascript, because it's another
> page...
> >
>
> Not true.
>
> var d = frames["iFrameName"].document;
> var f = d.getElementById("foo");
>
> You have to use some workarounds if you're creating and adding DOM nodes
> dynamically. This was discussed late last month.
>
> HTH
> --
More information about the BNMlist
mailing list. Powered by Wessex Networks