【问题标题】:The iframe closes (via onclick="self.parent.tb_remove();) in Firefox and IE7 but it doesn't close in Chromeiframe 在 Firefox 和 IE7 中关闭(通过 onclick="self.parent.tb_remove();)但在 Chrome 中没有关闭
【发布时间】:2010-04-26 14:16:21
【问题描述】:

代码:

HTML:

<p>View full-size photo <a href="iframeModal.html?placeValuesBeforeTB_=savedValues&TB_iframe=true&height=500&width=800&modal=true" title="The descripttion goes here." class="thickbox">here</a>.</p>

内嵌框架:

  <input id="Login" value="&nbsp;&nbsp;Ok&nbsp;&nbsp;" onclick="self.parent.tb_remove();" type="submit">

我错过了什么吗?

【问题讨论】:

标签: jquery iframe


【解决方案1】:

我会尝试window.parent.tb_remove();我不知道“self”是什么,也不知道“tb_remove”是什么,但总的来说,我并不真正了解这种情况。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-20
    • 1970-01-01
    • 1970-01-01
    • 2011-08-21
    • 2013-04-21
    相关资源
    最近更新 更多