I have an iframe in a page.
in this iframe I have a form.
I want a button from the page to get a value from the iframe form.
I tried to use getelemntbyid to get the iframe , and I got it,
but I can't reach the form.
how can it be done?
thanks
Guy
iframes and forms
Moderator: General Moderators
You can access named values on a named iframe using the following syntax:
The above is untested. It was quoted from the following site:
http://www.xs4all.nl/~ppk/js/?version5.html
Check the section pertaining to Frames and Windows
Code: Select all
frames['frame_name'].document.form_name.field_name;http://www.xs4all.nl/~ppk/js/?version5.html
Check the section pertaining to Frames and Windows