Syntax
document.links[num].handleEvent(event)
The handleEvent() method invokes the event handler associated with the event argument.
<html>
<head>
<script language="JavaScript">
<!--
function fillTextField(event) {
document.write("test");
}
-->
</script>
</head>
<body>
<map name="java2sMap">
<area name="peppers"
coords="1,1,48,48"
href="#PEPPERS"
target="_top"
onMouseOver="fillTextField(event)"
onMouseOut="fillTextField(event)"><br>
<area name="onion"
coords="51,1,99,49"
href="#ONION"
target="_top"
onMouseOver="alert('A')"
onMouseOut="alert('B')">
</map>
<img src="http://www.java2s.com/style/logo.png"
align="top"
height="50"
width="100"
usemap="#java2sMap">
<hr>
</body>
</html>