How can I access form fields in iframe through Javascript when clicking an event outside iframe?
On a Web page I am displaying a form using iframe. On clicking one event (outside the iframe), I want to access...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
the form fields (in iframe) through Javascript. Would you please suggest how to do that? Thanks in advance.
To set yourName to the value of the field "yourname" of the myForm form in the iframe, try this.
var iframe = document.getElementById ("myFrame"); var iframeDoc = iframe.Document; var iframeForm = iframeDoc. getElementById("myForm"); var yourName = iframeForm. yourname.value;
Do you have comments on this Ask the Expert Q&A? Let us know.
Dig Deeper on JavaScript for Lotus Notes Domino
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our Domino experts
View all Domino questions and answers
Start the conversation
0 comments