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

onstop Event

Internet Development Index

Fires when the user clicks the Stop button or leaves the Web page.

Syntax

Event propertydocument.onstop = handlerJScript only
document.onstop = GetRef("handler")Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = document EVENT = onstop> Internet Explorer only

Event Information

BubblesNo
CancelsNo
To invoke
  • Click the Stop button.
  • Leave the Web page.
Default action Initiates any action associated with this event.

Event Object Properties

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Available Properties

altKey Sets or retrieves a value that indicates the state of the ALT key.
altLeft Sets or retrieves a value that indicates the state of the left ALT key.
ctrlLeft Sets or retrieves the state of the left CTRL key.
shiftLeft Retrieves the state of the left SHIFT key.
type Sets or retrieves the event name from the event object.

Remarks

The onstop event fires after the onbeforeunload event, and before the onunload event.

Example

This example uses the onstop event to stop a function from executing in a continuous cycle. The setInterval method is used to execute script every millisecond. If the user clicks the Stop button, the clearInterval method removes the interval and the script is no longer executed.

document.onstop=fnTrapStop;
window.onload=fnInit;
var oInterval;
function fnInit(){
oInterval=window.setInterval("fnCycle()",1);
}
function fnCycle(){
// Do something
}
function fnTrapStop(){
window.clearInterval(oInterval);
}

Standards Information

There is no public standard that applies to this event.

Applies To

document
聂拉木县| 泰和县| 汽车| 桐梓县| 瑞昌市| 南江县| 闻喜县| 手机| 黄梅县| 休宁县| 武义县| 屯留县| 郧西县| 司法| 新蔡县| 乌兰浩特市| 刚察县| 盐城市| 托克逊县| 嘉兴市| 通山县| 梁山县| 张掖市| 兰坪| 云浮市| 太谷县| 兴安盟| 贵溪市| 开原市| 三台县| 武鸣县| 漳浦县| 天等县| 正宁县| 奇台县| 广汉市| 广灵县| 栖霞市| 霍山县| 修文县| 通化市|