Difference between revisions of "Event Watcher"

From Level Access Web Labs
Jump to navigation Jump to search
Line 21: Line 21:
 
       function test(e) {
 
       function test(e) {
 
           var evt = e ? e : window.event;
 
           var evt = e ? e : window.event;
 +
          var c = e.keyCode ? e.keyCode : "";
 
           var d = document.createElement("div");
 
           var d = document.createElement("div");
           var t = document.createTextNode(evt.type+" " +evt.target);
+
           var t = document.createTextNode(evt.type+" " +evt.target) + " " + c;
 
           d.appendChild(t);
 
           d.appendChild(t);
 
           var log1 = document.getElementById("log1");
 
           var log1 = document.getElementById("log1");

Revision as of 13:47, 21 May 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.

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

Log area