If you've added an event handler using addEventListener(), you can remove it again using the removeEventListener() method. The removeEventListener() method removes event handlers that have been Note: Once again, the parentheses are omitted to prevent the function from being invoked immediately. For instance, if we have a window of the size 500x500, and the mouse is in the left-upper corner, then clientX and clientY are 0, no matter how the page is scrolled. For instance, a left-button click first triggers mousedown, when the button is pressed, then mouseup and click when its released. In capture phase, also called the trickling phase, the event "trickles down" to the element that caused the event. Let's look at an example of a click event handler: An event can be triggered any time a user interacts with the page. I also dabble in a lot of other technologies. If we want to disable selection to protect our page content from copy-pasting, then we can use another event: oncopy. In the following example, we have a single