jQuery弹出窗口没有关闭

时间:2015-05-15 13:00:49

标签: javascript jquery iframe popup

我已经尝试关闭jQuery iframe弹出窗口,但我似乎无法做到。我已经看到很多类似问题的解决方案,但我认为我的代码存在严重错误。

我有这段代码

    <a id="button" href="#popupVideo" data-rel="popup" data-position-to="window" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">Ε</a>
<div data-role="popup" id="popupVideo" data-overlay-theme="b" data-theme="a" data-tolerance="15,15" class="ui-content">
    <iframe id="iframeId" src="http://localhost:8080/newfile.php","MsgWindow" width="1000" height="600" seamless=""></iframe>
</div>

它做了我想要的,从我拥有的文件中提供了一个带有iframe的窗口。然而,虽然通过在灰色区域外面点击它来关闭它很简单,使用按钮关闭窗口以某种方式证明真的很难做。

我只是想假装按钮事件类似于在窗口外点击。我还想要另一个重新加载iframe的按钮(我现在可以在iframe中打开一个新窗口,但前一个窗口仍然存在)。

来自iframe的javascript之类的东西似乎不起作用。

0 个答案:

没有答案