如何在单击html中的按钮时关闭弹出窗口

时间:2015-07-09 05:22:27

标签: html button popup window

我一直在尝试在我的页面上使用纯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>

1 个答案:

答案 0 :(得分:0)

<input type="button" value="Close this window" onclick="self.close()">

在体内,这有帮助吗?