最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

close Method

Internet Development Index

Closes the current browser window or HTML Application (HTA).

Syntax

window.close()

Return Value

No return value.

Remarks

How a window is closed programmatically determines whether the user is prompted with a confirmation dialog box.

  • Invoking the window.close method on a window not opened with script displays a confirmation dialog box. Using script to close the last running instance of Microsoft® Internet Explorer also opens the confirmation dialog box.
  • Invoking the window.close method on an HTA closes the application without prompting the user because the HTA is trusted and follows a different security model. For more information on the security model of HTAs, please refer to The Power of Trust: HTAs and Security.

When a function fired by an event on any object calls the close method, the window.close method is implied.

<SCRIPT LANGUAGE="JScript">
function foo() {
close();}
</SCRIPT>
<BODY onclick="foo();">
Click this page and window.close() is called.
</BODY>

When an event on any object calls the close method, the document.close method is implied.

<BUTTON onclick="close();">
Click this button and document.close() is called.
</BUTTON>

Standards Information

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1s Non-Microsoft link.

Applies To

window
彩票| 青海省| 明溪县| 龙井市| 西城区| 玛多县| 大荔县| 荣昌县| 博客| 濮阳市| 万载县| 五华县| 孟连| 万州区| 黑龙江省| 田东县| 通州区| 兰溪市| 错那县| 边坝县| 太湖县| 江口县| 大同县| 滕州市| 梧州市| 内乡县| 咸阳市| 兴业县| 楚雄市| 英超| 永嘉县| 满城县| 乌兰察布市| 张家港市| 临海市| 安庆市| 富平县| 武冈市| 马龙县| 彝良县| 高台县|