Solution for retrieving the value of frameset in firefox

Source: Internet
Author: User

Ff cannot be accessed directly by the Frame ID.
(Ie ff can be accessed directly through the Frame Name, But FrameSet does not support the name attribute)

Therefore, window. parent. full elementbyid ("full ");
For details about js operation frame, the differences between window. opener and window. parent

To change the pages in the frame to other pages in the same frame or in the parent frame, use parent.
Window. opener references the parent page of the page opened by window. open.

The window. frames object can reference pages in iframe or in frameset.
Replace the following code with IE, ff compatible. frm = window. parent. window. frames ['uploadframework'];

In fact, the frames set is not attached to the document but to the window object.


Note that there is a limit on modifying the page in the frame, that is, the page must be in the same domain; otherwise, the page cannot be accessed.
If it is in the same domain, but the sub-domain names are different, then the js and html files involved are added with a sentence.
Document. domain = xxx.com [enter your domain name here]
Document.getelementbyid('iframeid'{.content}doc ument. getElementById ('someelementid ');

Address: http://www.52blogger.com/archives/516

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: 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.