HTML onmouseover Event Attribute Last Updated : 11 Jul, 2025 Comments Improve Suggest changes 1 Likes Like Report The onmouseover event attribute works when the mouse pointer moves over the specified element. It is basically: Activated when the mouse pointer enters the designated HTML element.Enables executing JavaScript code when the mouse hovers over the element.Ideal for enhancing user experience by providing feedback or additional information.Syntax<element onmouseover = "script"> Attribute valueThis attribute contains a single value script that works when the mouse moves over the element. Example: In this example, we will see when we hover our mouse over an element we can see an alert popup on our screen. HTML <!DOCTYPE html> <html> <head> <title>onmouseover event attribute</title> <style> body { text-align: center; } h1 { color: green; } </style> </head> <body> <h1> GeeksforGeeks </h1> <h2> onmouseover Event Attribute </h2> <p onmouseover="geeks()"> Computer science portal </p> <script type="text/javascript"> function geeks() { alert("Mouse move over"); } </script> </body> </html> Output: We have a complete list of HTML DOM methods, to check those please go through this HTML DOM Object Complete reference article. Supported TagsIt supports all HTML elements except <base> <bdo> <br> <head> <html> <iframe> <meta> <param> <script> <style> <title> tags. Supported BrowserThe browser supported by onmouseover Event Attribute are listed below: Google Chrome 1 and aboveEdge 12 and aboveFirefox 6 and aboveOpera 9.5 and aboveSafari 4 and aboveWe have a Cheat Sheet on Javascript where we covered all the important topics of Javascript to check those please go through Javascript Cheat Sheet-A Basic guide to JavaScript. Create Quiz Comment S sheyakhare1999 Follow 1 Improve S sheyakhare1999 Follow 1 Improve Article Tags : Web Technologies HTML HTML-Attributes 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 Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 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 List15+ 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