This example uses the addEventListener() method to execute a function when a user clicks anywhere in the document.