Event Handler example:
<html>
<head>
<title>ViewONE Event Handler Demo</title> </head>
<body bgcolor="#C0C0C0" text="#000000" topmargin="0" leftmargin="0">
<script LANGUAGE="JavaScript">
function myhandler(id, text)
{
alert(id + ", " + text);
}
<applet CODEBASE="../v1files" ARCHIVE="ji.jar" CODE="ji/applet/jiApplet.class" NAME="ViewONE"
ID="ViewONE"
WIDTH="100%"
HEIGHT="97%"
HSPACE="0"
VSPACE="0"
ALIGN="middle"
MAYSCRIPT="true">
<param name="cabbase" value="ji.cab">
<param name="eventhandler" value="myhandler"> <param name="eventInterest" value="9, 37, 39"> <param name="backcolor" value="192,192,192"> <param name="filename" value="mydocument.tif">
</applet>
</body>
</html>
87