Difference between revisions of "Event Watcher"

From Level Access Web Labs
Jump to navigation Jump to search
 
Line 40: Line 40:
  
 
       function setup() {
 
       function setup() {
var elements = ['s1','i1','b1','a1','d1','d2','d3','d4','r1'];
+
var elements = ['s1','i1','b1','a1','d1','d2','d3','d4','r1','c1'];
 
var el;
 
var el;
  
Line 83: Line 83:
  
 
     <a aria-label="SSB" tabindex="0" href="#a1" id="a1">SSB </a>
 
     <a aria-label="SSB" tabindex="0" href="#a1" id="a1">SSB </a>
 +
    <label><input type="checkbox" id="c1" >Order now!</label>
 
     <div id="d1" tabindex="0" onclick="goSomewhere();" > div area with tabindex </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="d2" onclick="goSomewhere();" > div area with no tabindex </div>

Latest revision as of 23:04, 4 October 2019

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.

SSB
div area with tabindex
div area with no tabindex
div area with no tabindex and delegate

Log area