if you are after elements in the top level frame you can access them like:


$('#selector', parent.document.body)




2009/10/13 Christophe <christophe.humb...@gmail.com>:
>
> Jon, find will allow me to access DOM elements like head, body, etc.
> What I need to access is the iframe window.
>
> Christophe
>
> On Oct 13, 6:02 pm, Jon Banner <banali...@googlemail.com> wrote:
>> You can chain...
>>
>> $("iframe")[i].contents().find('#selector')
>>
>> Jon
>>
>> 2009/10/13 Christophe <christophe.humb...@gmail.com>:
>>
>>
>>
>>
>>
>> > 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!- Hide quoted text -
>>
>> - Show quoted text -

Reply via email to