Home  >  Article  >  Web Front-end  >  jQuery在iframe中无法弹出对话框的解决方法_jquery

jQuery在iframe中无法弹出对话框的解决方法_jquery

WBOY
WBOYOriginal
2016-05-16 17:04:13922browse

jQuery的弹出框使用很方便,但是如果在iframe中使用则弹不出对话框,而有时候我们还必须得使用iframe而不能用jQuery的load方式,这个时候就需要处理这个问题。

其实也非常简单,思路就是让iframe的父窗口弹出这个对话框。例如:

parent.confirmDialog();

这样就可以用了。不是什么有技术含量的问题,记下来,防止忘记。

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