The Document Object

The addEventListener() Method

Click anywhere in the document to display "Hello World!".

Testing

document.addEventListener("click", myFunction);

function myFunction() {
  alert("lemon");
};