how to access iframe element from the parent document

R

Roy

Hi,

I have a parent document which has an iframe loaded in it.
The iframe has an textfield element.
I want to access this textfield element from the parent document. I
have tried the following. But that doesn't work.

(from the parent)
window.frames['frame01'].document.getElementById('idname')

I always get as null.

Please help.

Thanks,
Subarayan.
 
D

Danny

Looks good to me so long the iframed is named or IDed 'frame01', and its input
element is IDed, NOT named, 'idname', it should work just fine :).

Danny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top