Home >Web Front-end >JS Tutorial >Solution to the problem that jQuery cannot pop up the dialog box in iframe_jquery

Solution to the problem that jQuery cannot pop up the dialog box in iframe_jquery

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:04:131025browse

jQuery’s pop-up box is very convenient to use, but if it is used in an iframe, the dialog box will not pop up. Sometimes we have to use an iframe instead of jQuery’s load method. At this time, we need to deal with this problem.

In fact, it is very simple. The idea is to let the parent window of the iframe pop up this dialog box. For example:

parent.confirmDialog();

This will work. It's not a technical question, just write it down to prevent forgetting.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn