Name
MAYSCRIPT — NN 3 IE 4 HTML n/a
Synopsis
MAYSCRIPT
Optional
Navigator 3 introduced a technology called LiveConnect, which allowed
scripts to communicate with Java applets and vice versa. For security
reasons, an applet’s communications facilities with scripts
must be explicitly switched on by the page author. By adding the
MAYSCRIPT
attribute to the applet’s tag, an
applet that is written to take advantage of the document objects and
scripts can address those items. In other words, the HTML is granting
the applet the ability to reach scripts in the document. This
attribute is a simple switch: when the attribute name is present, it
is turned on.
One more step is required for an applet to communicate with JavaScript. The applet code must import a special Netscape class called JSObject.class. This class file (and its companion exception class) are built into the Java support in the Windows version of Internet Explorer 4. Although the execution is not perfect in IE 4, applets can perform basic communication with scripts.
Example
<APPLET CODE="ScriptableClock.class" WIDTH=400 HEIGHT=50 MAYSCRIPT> </APPLET>
Value
No value assigned to the attribute. The presence of the attribute name sets turns on applet-to-script communication.
Default
Off.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.