Difference between revisions of "Event Watcher"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
function test(e) { | function test(e) { | ||
− | + | var evt = e ? e : window.event; | |
var d = document.createElement("div"); | var d = document.createElement("div"); | ||
− | var t = document.createTextNode( | + | var t = document.createTextNode(evt.type+" " +evt.target); |
d.appendChild(t); | d.appendChild(t); | ||
document.getElementById("d1").appendChild(d); | document.getElementById("d1").appendChild(d); |
Revision as of 19:23, 10 March 2015
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
- onkeypress