HTML DOM removeEventListener() Method Last Updated : 13 Jun, 2023 Comments Improve Suggest changes 1 Likes Like Report The removeEventListener() method is used to remove an event handler associated with the addEventListener() method. This method of removing event handler can be used only with the addEventListener() method specified using an external function. Syntax: element.removeEventListener(event, function, useCapture); Parameters: This function accepts three parameters as described below: event: The parameter event specifies the name of the event to be removed.function: The parameter function specifies the function to be removed.useCapture: The parameter useCapture denotes the event phase to be removed from the event handler. If useCapture has the boolean value true, it removes the event handler from the capturing phase else it removes the event handler from the bubbling phase. Example: In the below example, calls event handler which changes the color of the division tag on mousemove over division. After pressing the change color button, the event handler associated with the division tag gets removed and no color change appears on mousemove over division. html <!DOCTYPE html> <html> <head> <style> #myDIV { font-size:60px; border: 1px solid; padding: 50x; color: black; } </style> </head> <body> <div id="myDIV"> GeeksForGeeks <br> <button onclick="removeHandler()" id="myBtn"> Change color </button> </div> <script> document.getElementById("myDIV") .addEventListener("mousemove", myFunction); function myFunction() { document.getElementById("myDIV") .style.color= "green"; } function removeHandler() { document.getElementById("myDIV") .removeEventListener("mousemove", myFunction); } </script> </body> </html> Output: Before Pressing Button: After Pressing Button: Supported Browsers: The browsers supported by removeEventListener() method are listed below: Google Chrome 1.0Edge 12.0Internet Explorer 9.0Firefox 1.0Opera 7.0Safari 1.0 Create Quiz Comment C chaitanyashah707 Follow 1 Improve C chaitanyashah707 Follow 1 Improve Article Tags : Web Technologies HTML HTML-Methods Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List5 min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like