Onmouseover events In Java Script

This event occurs when the cursor is brought over the specified object, the coordinates of the object are noted and if the position of cursor falls inside those coordinates this event gets fired, to which we can program accordingly.


<title>events </title>


<body bgcolor=green text=”white”>

<h4 align =center> Please bring your mouse over the image</h4>

<img id=”img1″ src=”water.jpg” height=200 width=200 onmouseover=”ff()”>


function ff()


document.all.img1.width=”180″ document.all.img1.height=”180″





Scroll to Top