隐藏的IFrame modalpopup [英] hide modalpopup from IFrame
本文介绍了隐藏的IFrame modalpopup的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
净AJAX应用程序。我有一个modelpopup,显示一个IFRAME和里面的Iframe我分别用asp.net页面。 我想隐藏modelpopup当内部的IFrame页面关闭按钮,用户点击。 我如何才能找到揭幕战modalpopup?
net ajax app. I have one modelpopup that shows a IFrame and inside Iframe I show one asp.net page. I want to hide the modelpopup when user click on close button in page inside IFrame. How can I find the opener modalpopup?
感谢
推荐答案
通过简单的JavaScript可以通过使用访问上面的窗口javascript的值或功能的 window.top.document ,例如:
with simple javascript you can access the top window javascript values or functions by using the window.top.document, for example:
window.top.FunctionToRun();
和查找
window.top.document.getElementById("ControlIdToFindOnParent")
或直接
window.top.document.forms[0].ControlNameOnParent
如果你使用jQuery,你可以使用
If you using jQuery you can use the
jQuery("#ControlIdToFindOnParent", window.top.document)
这篇关于隐藏的IFrame modalpopup的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文