Difference between revisions of "Event Watcher"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
<html> | <html> | ||
− | <input type="text" /> | + | <head> |
− | <button> Test </button> | + | <script type="text/javascript"> |
− | <a href="#"> test </a> | + | function test() { |
− | <h3>Log area</h3> | + | var d = document.createElement("div"); |
− | <div> | + | var t = document.createTextNode(event.type); |
− | </div> | + | d.appendChild(t); |
+ | document.getElementById("d1").appendChild(d); | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
+ | <body> | ||
+ | <input type="text" onfocus="test(event);" /> | ||
+ | <button> Test </button> | ||
+ | <a href="#"> test </a> | ||
+ | <h3>Log area</h3> | ||
+ | <div id="d1"> | ||
+ | |||
+ | </div> | ||
+ | </body> | ||
</html> | </html> | ||
[[Category:Techniques]] | [[Category:Techniques]] |
Revision as of 14:54, 14 April 2014
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.