Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

window.releaseEvents

已废弃 Gecko 24 (Firefox 24 / Thunderbird 24 / SeaMonkey 2.21)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

概述

Releases the window from trapping events of a specific type.

Gecko 24 note
(Firefox 24 / Thunderbird 24 / SeaMonkey 2.21)

This method had been considered deprecated since Gecko 1.9 (Firefox 3) in favor of W3C DOM Events methods (see removeEventListener). The support for this method has been removed from Gecko 24 (Firefox 24).

语法

window.releaseEvents(eventType) 

eventType is a combination of the following values: Event.ABORT, Event.BLUR, Event.CLICK, Event.CHANGE, Event.DBLCLICK, Event.DRAGDDROP, Event.ERROR, Event.FOCUS, Event.KEYDOWN, Event.KEYPRESS, Event.KEYUP, Event.LOAD, Event.MOUSEDOWN, Event.MOUSEMOVE, Event.MOUSEOUT, Event.MOUSEOVER, Event.MOUSEUP, Event.MOVE, Event.RESET, Event.RESIZE, Event.SELECT, Event.SUBMIT, Event.UNLOAD.

示例

window.releaseEvents(Event.KEYPRESS)

附注

Note that you can pass a list of events to this method using the following syntax: window.releaseEvents(Event.KEYPRESS | Event.KEYDOWN | Event.KEYUP).

See also window.captureEvents ( ).

规范

DOM0

文档标签和贡献者

 此页面的贡献者: teoli, khalid32, ziyunfei
 最后编辑者: khalid32,