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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top