This event occurs when the cursor is moved out of the specified object. The position of object and position of mouse pointer is noted if the mouse pointer moves out of the object area this event gets fired. |
Example: |
<html>
<head> <title>events </title> </head> <body bgcolor=green text=”white”> <h4 align =center> Please bring your mouse over the image and remove it</h4> <img id=”img1″ src=”water.jpg” height=200 width=200 onmouseover=”ff()” onmouseout=”ff1()”> <script> function ff() { document.all.img1.width=”190″ document.all.img1.height=”190″ } function ff1() { document.all.img1.width=”200″ document.all.img1.height=”200″ } </script> </body> </html> |
Check Also
Functions Returning Values In Java Script
Function is a set of statements recognized by a name and can be used as …