HTML onmouseover Event Attribute (original) (raw)
Last Updated : 15 Nov, 2023
**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
**Attribute value
This 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 `
onmouseover event attribute