How can I call a javaScript function present in a child <iframe>
node from the parent? I am using jquery selector to select the correct iframe node but do not know how to call the function. Also the desired iframe has been added dynamically using jquery.
For example, the iframe is
<iframe id="frameOne" src="http://form_one.html"><iframe>
I need to do something like this
$(#frameOne).submitList();
where submitList()
is a function in form_one.html.
Thanks.