Hi,
I developed a program in applet and i use to call that function through javascript. I tested with other browser like IE, Opera, Firefox, Netscape and Safari. My code is working every browser accept safari. Can any body guide me what is the problem.
<html>
<head>
<script language="javascript">
function appletCall()
{
try
{
var returnVal=document.appletName.functionName();
alert(returnVal);
}catch(ex)
{
alert(ex);
}
}
</head>
<body>
<applet name="appletName" id="appletName" CODE="appletExample.class" WIDTH=100 HEIGHT=100></applet>
<input type="button" name="b1" value="ok" onclick="appletCall()">
</body>
</html>
Exception in safari browser
TypeError: Value undefined (result of expression document.appletName.functionName()) not object.