Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Area handleEvent()

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="rntsoftMap">       <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.rntsoft.com/style/logo.png"          align="top"          height="50"          width="100"          usemap="#rntsoftMap">     <hr>     </body>     </html>