This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calling java applet function from javascript works in IE,but not in netscape  RSS feed

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I have a button in a form,when click the button,it will call a javascript function, and this javascript function will call a public method of an applet which is embedded in the same web page. it works well in IE, but in Netscape, it says "theapplet has no property". The code for the javascript function is as following:
function htmlRedirect(appletName)
{
var theapplet=document.applets[appletName];
theapplet.htmlRedirect();
}
The html for the button is :
<center><INPUT type="button" name="help" value="help" size="7" onClick="htmlRedirect('applet1')"></center>
</FORM>
applet1 is the name of the applet.
This annoying problem baffled me a lot. Help me,please!
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the same problem as well. Can you let me know if you figure it out, and I will do the same in return. Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!