Easyui-window contains an IFRAME, how to close window in an IFRAME

Source: Internet
Author: User

I tried something like $ (' #win '). Window (' close ');
Reported $.data...options invalid error, I have introduced the JS file, the path is not a problem, and on the same page, no IFRAME can be closed

In the IFRAME page, I tried to close the window windows by calling the $ (parent.document). Find (' #win ') method, but reported JS error: $.data...options is invalid.


Workaround: parent.$ (' #win '). Window (' close ');
or window.parent.$ (' win '). Window (' close ');

Easyui-window contains an IFRAME, how to close window in an IFRAME

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.