Difference between revisions of "Event Watcher"

From Level Access Web Labs
Jump to navigation Jump to search
Line 24: Line 24:
 
           var t = document.createTextNode("hello");
 
           var t = document.createTextNode("hello");
 
           d.appendChild(t);
 
           d.appendChild(t);
           document.body.appendChild(d);
+
           document.getElementById("b1").appendChild(d);
 
       }
 
       }
 
     </script>
 
     </script>
 
   </head>
 
   </head>
 
   <body>
 
   <body>
 +
  <div id="d1">
 
     <input title="Entry" type="text" onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);"  onkeypress="test(event);" onchange="test(event);"/>
 
     <input title="Entry" type="text" onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);"  onkeypress="test(event);" onchange="test(event);"/>
 
     <button onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);"  onkeypress="test(event);"> Test </button>
 
     <button onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);"  onkeypress="test(event);"> Test </button>
Line 36: Line 37:
  
 
     </div>
 
     </div>
 +
  </div>
 
   </body>
 
   </body>
 
</html>
 
</html>
 
[[Category:Techniques]]
 
[[Category:Techniques]]

Revision as of 13:45, 10 August 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
  • onkeydown

test

Log area