onmouseover event
Examples
Move the mouse pointer to the image after the execution of Javascript code:
<img onmouseover="bigImg(this)" src="smiley.gif" alt="Smiley">
try it"
Definition and Usage
onmouseover event when the mouse pointer is moved to the specified element occurs.
grammar
In HTML:
<element
onmouseover="SomeJavaScriptCode">
In JavaScript:
object .onmouseover=function(){SomeJavaScriptCode};
参数 | 描述 |
---|---|
SomeJavaScriptCode | 必需。规定该事件发生时执行的 JavaScript。 |
Browser Support
The onmouseover event all the major browsers support
HTML tags support of the event:
onmouseover attribute can then have HTML elements except: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style> , and <title>.
Event objects