MAYSCRIPT (HTML Tag Attribute)

An attribute on the <APPLET> tag to allow Java to access the JavaScript object space.

This is an HTML tag attribute that can significantly affect the success or failure to run applets and plugins properly.

The MAYSCRIPT attribute must be present in the <APPLET> tag if you have applets that expect to communicate with JavaScript. This is a way of allowing applets to script under the behest of the web page author who may not be the person who programmed the applet. This way, the author has to know and expect the applet to connect to JavaScript before the applet is able to do so.

Without this attribute, an applet is not able to access the JSObject class and communicate with the JavaScript environment.

The MAYSCRIPT HTML tag attribute is not reflected into the JavaScript environment.

See also:JavaScript embedded in Java, JSObject object