Difference between revisions of "Event Watcher"

From Level Access Web Labs
Jump to navigation Jump to search
Line 13: Line 13:
 
        
 
        
 
       function test(e) {
 
       function test(e) {
           // e ? e : window.event;
+
           var evt = e ? e : window.event;
 
           var d = document.createElement("div");
 
           var d = document.createElement("div");
           var t = document.createTextNode(event.type+" " +event.target);
+
           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

test

Log area