Home >Web Front-end >JS Tutorial >Custom jquery modal window plug-in cannot display the problem in the top-level window_jquery

Custom jquery modal window plug-in cannot display the problem in the top-level window_jquery

WBOY
WBOYOriginal
2016-05-16 16:46:221117browse

When you customize a jquery modal window plug-in and integrate it into an existing platform framework, it can only be displayed in the mainFrame window and cannot be displayed in the top-level window.

The solution to this problem:

It is possible to realize the pop-up window in the top-level window through the following code

Copy the code The code is as follows:

$(window.top.document.body).append("
");
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