IFRAME value passing Problem

Source: Internet
Author: User

When an IFRAME is inserted in a page or is composed of different frameworks (fieldset), in this case, the business logic to be processed is more common, that is, data interaction.

1. IFRAME information is inserted into the page.

Because IFRAME is inserted in the page, IFRAME is a link from the main form.
When an IFRAME is inserted in a page or is composed of different frameworks (fieldset), in this case, the business logic to be processed is more common, that is, data interaction.

1. IFRAME information is inserted into the page.

Because IFRAME is inserted in the page, IFRAME is a link from the main form.

The value in the IFRAME should be obtained for the main form: window. Frames ["iframe name" 2.16.doc ument. getelementbyid ("");

IFRAME: obtain the value of top.doc ument. getelementbyid ("");

IFRAME: window. Top. Frames ["iframe name" 2.16.doc ument. getelementbyid ("");

2. The page consists of <fieldset> </fieldset>

The relationship between pages is equal.

Assume that topframe and mainframe exist.

Topframe: to obtain the value in mainframe: window. Top. Frames ["mainframe" comment .doc ument. getelementbyid ("");

Note: The top above is directly oriented to the main form.

The value in the IFRAME should be obtained for the main form: window. Frames ["iframe name" 2.16.doc ument. getelementbyid ("");

IFRAME: obtain the value of top.doc ument. getelementbyid ("");

IFRAME: window. Top. Frames ["iframe name" 2.16.doc ument. getelementbyid ("");

2. The page consists of <fieldset> </fieldset>

The relationship between pages is equal.

Assume that topframe and mainframe exist.

Topframe: to obtain the value in mainframe: window. Top. Frames ["mainframe" comment .doc ument. getelementbyid ("");

Note: The top above is directly oriented to the main form.

When IFRAME is introduced to the page, the role of parent and top is the same.
However, in <fielde>, parent is the parent form and top is the top-level form.

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: info-contact@alibabacloud.com 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.