window.releaseEvents

3 位贡献者:

已废弃 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,
隐藏侧边栏