The custom jquery modal window plug in could not display the problem in the top window

  • 2020-03-30 03:09:13
  • OfStack

Customize a jquery modal window plug-in that, when integrated into an existing platform framework, can only be displayed in the mainFrame window, not in the top-level window.

The solution to this problem:

With the following code it is possible to achieve popover in the top window
 
$(window.top.document.body).append("<div id='dialog'></div>"); 

Related articles: