onmouseover event
The onmouseover event is used to determine whether the user moves the mouse to a specific object or web page element. If the mouse is moved to the element where the onmouseover event is inserted, a specific JavaScript function will be triggered to start a specific task, such as when the mouse is Move to a picture to automatically display the introduction picture of the dialog window, or move the mouse to a thumbnail of a web page, and the original large picture will be automatically displayed. It is a common way of onmouseover event application, and all major browsers Support onmouseover event.
onmouseover event syntax
onmouseover = "JavaScript function to be triggered"
The "JavaScript function to be triggered" in the grammar is a necessary item. The function of onmouseover is only to monitor the situation where the user moves the mouse over the element. The real task is to use various functions or functions of JavaScript. The following is a preparation Very simple reference example.
onmouseover event example
Mouse cursor moved here to test
</div>
Post a Comment
0 Comments