【问题标题】:How to close a popup window, when clicking onto a button in html only仅在单击 html 中的按钮时如何关闭弹出窗口
【发布时间】:2015-07-09 05:22:27
【问题描述】:

我一直在尝试在我的页面上使用纯 HTML,因为我不懂 jQuery 并且对 JavaScript 非常陌生。

有没有办法用纯 HTML 关闭弹出窗口?

<td colspan="4">
  <div align="center">
    <label>
      <input type="checkbox" name="checkbox" value="checkbox">I Agree To The Terms & Conditions</label>
  </div>
</td>
</tr>
<tr>
  <td width="27%" height="28">
    <div align="center">
      <label></label>
    </div>
  </td>
  <td width="22%">
    <form action="LLH.html">
      <div align="right">
        <input type="submit" value="Agree">
      </div>
    </form>
  </td>
  <td width="21%">
    <div align="left">
      <form action="master.destroy(Terms.html)">
        <input type="submit" value="Do Not Agree">
      </form>
    </div>
  </td>
  <td width="30%">&nbsp;</td>

【问题讨论】:

    标签: html button popup window


    【解决方案1】:
    <input type="button" value="Close this window" onclick="self.close()">
    

    对身体有帮助吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-29
      • 1970-01-01
      相关资源
      最近更新 更多