Difference between revisions of "Event Watcher"
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
function setup() { | function setup() { | ||
− | var elements = ['s1','i1','b1','a1','d1']; | + | var elements = ['s1','i1','b1','a1','d1','d2']; |
var el; | var el; | ||
Line 82: | Line 82: | ||
<a aria-label="SSB" tabindex="0" href="#" id="a1">SSB </a> | <a aria-label="SSB" tabindex="0" href="#" id="a1">SSB </a> | ||
− | <div id="d1" tabindex="0"> div area </div> | + | <div id="d1" tabindex="0" onclick="goSomewhere();" > div area with tabindex </div> |
+ | <div id="d2" onclick="goSomewhere();" > div area with no tabindex </div> | ||
+ | <div id="d3" onclick="goSomewhere();" > | ||
+ | <div id="d4" >div area with no tabindex and delegat </div> | ||
+ | </div> | ||
<h3>Log area</h3> | <h3>Log area</h3> | ||
− | <div | + | <div id="d2" aria-live="polite" > |
− | |||
<button onclick="setup();"> start</button> | <button onclick="setup();"> start</button> | ||
</div> | </div> |
Revision as of 19:22, 28 March 2018
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
Event types and their target object will be displayed in the section below. Raw event objects will also be logged to the browser console, and may be reviewed with the developer tools.