.contentWindow is not IE-only. I've used it in all modern browsers for the
last 2-3 years.

Here's a test someone ran on it a few months ago:

http://www.bennadel.com/index.cfm?dax=blog:1592.view

If you have an IFRAME DOM element, then element.contentWindow will work
fine.

Your $('iframe')[i] should give you a valid IFRAME element, assuming that
'i' is within range. Or you could use any other kind of jQuery selector,
e.g. $('#myIframeID')[0].contentWindow.

-Mike

On Tue, Oct 13, 2009 at 2:48 AM, Christophe <christophe.humb...@gmail.com>wrote:

>
> How can I access an iframe window using jQuery? The only iframe
> related stuff I have found is contents(), which allows me to access
> the DOM in the iframe.
>
> For now, I am using $("iframe")[i].contentWindow, but it seems to be
> IE only.
>
> Thanks!
>

Reply via email to