最新国产好看的视频,伊人天堂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
开远市| 子长县| 东宁县| 雷波县| 奈曼旗| 临夏县| 海原县| 乌兰浩特市| 衡水市| 页游| 藁城市| 沙田区| 尚义县| 昆明市| 东源县| 磴口县| 潞西市| 湾仔区| 武强县| 鸡西市| 肥城市| 讷河市| 沙坪坝区| 云安县| 通城县| 阿拉善盟| 阿克| 肇东市| 城口县| 蒙阴县| 福泉市| 北流市| 监利县| 垦利县| 交口县| 云林县| 博野县| 合山市| 浙江省| 贡觉县| 东辽县|