Difference between revisions of "Event Watcher"
Jump to navigation
Jump to search
Line 26: | Line 26: | ||
} | } | ||
− | function | + | function notused() { |
var d = document.createElement("div"); | var d = document.createElement("div"); | ||
var t = document.createTextNode("hello"); | var t = document.createTextNode("hello"); | ||
Line 37: | Line 37: | ||
var el; | var el; | ||
for (var i=0; i< elements.length; i++) { | for (var i=0; i< elements.length; i++) { | ||
+ | console.log(elements[i]); | ||
el = document.getElementById(elements[i]); | el = document.getElementById(elements[i]); | ||
el.addEventListener("touchstart", test, false); | el.addEventListener("touchstart", test, false); |
Revision as of 15:46, 26 February 2016
Move through the fields below and watch the events that are sent by the browser. For example, use with AT to find out what events are being fired.
- onfocus, onblur
- onclick, ondbclik
- onmouseup, onmousedown, onmouseover
- onkeypress, onkeydown, onkeyup
- touchstart, touchend
- touchmove, touchcancel