window.releaseEvents()
|
|
Syntax |
window.releaseEvents(event) window.releaseEvents(event1 | event2 | eventN)
|
|
The releaseEvents() method releases all previously captured events. |
These events can be captured with the Window.captureEvents() method. |
The events that can be released are as follows: |
- Event.ABORT
- Event.BLUR
- Event.CHANGE
- Event.CLICK
- Event.DBLCLICK
- Event.DRAGDROP
- 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
|
<html> <head> <script language="JavaScript1.2"> <!-- var counter = 0;
window.captureEvents(Event.CLICK);
function changeText(){ document.myForm.myText.value = counter++; } function releaseClick(){ window.releaseEvents(Event.CLICK); } --> </script> </head> <body> <form name="myForm"> <input type=TEXT size=2 value="" name="myText" onClick='changeText()'> <input type=BUTTON value="Release Event" onMouseDown='releaseClick()'> </form> </body> </html>
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|