Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

The most obvious example is handling the click event,

document.querySelector('html').addEventListener('click', function() {
  alert('Ouch! Stop poking me!');
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #The #obvious #handling #click
ADD COMMENT
Topic
Name
2+9 =