Difference between revisions of "Event Watcher"

From Level Access Web Labs
Jump to navigation Jump to search
Line 19: Line 19:
 
           d.appendChild(t);
 
           d.appendChild(t);
 
           document.getElementById("d1").appendChild(d);
 
           document.getElementById("d1").appendChild(d);
 +
      }
 +
      function run() {
 +
          var d = document.createElement("div");
 +
          d.textContent = "hello";
 +
          document.body.appendChild(d);
 
       }
 
       }
 
     </script>
 
     </script>
Line 25: Line 30:
 
     <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>
     <a href="javascript:alert('test');" onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);"  onkeydown="test(event);" onkeypress="test(event);"> test </a>
+
     <a href="javascript:run();" onfocus="test(event);" onblur="test(event);" onclick="test(event);" ondbclick="test(event);" onmouseup="test(event);"  onkeydown="test(event);" onkeypress="test(event);"> test </a>
 
     <h3>Log area</h3>
 
     <h3>Log area</h3>
 
     <div id="d1" aria-live="polite" >
 
     <div id="d1" aria-live="polite" >

Revision as of 13:42, 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