To enable Javascript support:
* add MAYSCRIPT to the applet tag;
<applet code="apMenu" archive="apMenu.jar" Width="125" Height="156" MAYSCRIPT>
<param name="javascript:1" value="somefunction('param1','param2')">
<param name="javascript:2" value="open('index.html','_blank')">
<param name="menuItems" value="
{Script1,javascript:1,_}
{Script2,javascript:2,_}">
</applet>
Javascript calls limitations:
* Value and variable assignments are not supportedThe best way to overcome most of the limitations is placing the instructions within a javascript function:
.....
function open_w(arg){
if (confirm('Open a new window?') == true){
open(arg,'window','scrollbars,resizeable=yes,width=680,height=600')
}
}
.....
<param name="javascript:1" value="open_w('index.html')">
<param name="menuItems" value="
{Open window,javascript:1,_}">
.....