Source: Internet
Author: User

Access the txtaddress control of the iframe subform on the parent page.
Window. Frames ["ifrmapcompanydetails" 2.16.doc ument. All ("txtaddress"). value = 'address ';
It is best to write the control on the motherboard page as follows:

Document.frames{'iframeapp'}.doc ument. getelementbyid ('ctl00 _ contentplaceholder=hidisselectflow'). value;


Access the textbox1 control of the parent page in IFRAME subform 1, and subform 1 assigns the value to a control of subform 2.
String strvalue = "value passed from the child form to the parent page ";
The following is called in the page_load event. Of course, it can be written in a Javascript script.
This. response. Write ("<SCRIPT> parent.doc ument. All ('textbox1'). value = '" + strvalue + "'; </SCRIPT> ");
This. response. write ("<SCRIPT> If (parent.doc ument. all ('textbox2 '). value = '0'your parent.doc ument. all ('textbox1 '). value = '44'; </SCRIPT> ");

Access the txtaddress control of child Form 2 in IFRAME subform 1 and assign the value to a control of child Form 2.
Window. Parent. Frames ["ifrmapcompanydetails" 2.16.doc ument. All ("txtaddress"). value = 'address ';

The parent form submits two IFRAME child forms.
Window. Frames ["ifrmapcompanydetails"]. form1.submit ();
Window. Frames ["ifrmapproductinfodetails"]. form1.submit ();

The IFRAME subform calls the Javascript event of the parent page.
Window. Parent. XXX ()

// The parent page calls the script childevent on the IFRAME subpage of the current page.
Function invokechildevent ()
{Var FRM = Document. Frames ["ifrchild1"]. childevent ();}
Or call the childevent script in the first IFRAME on the current page.
{Var FRM = Document. Frames [0]; frm. childevent ();}

// The button event that calls a button of the parent form on the Child page
Window. Parent. form1.btnparent. Click ()

A button event that calls a button of a child form on the parent page
Response response frames['ifrchild1'hangzhou.doc ument. All. Item ("btnchild3"). Click ();

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.