JavaScript语言参考手册 技术交流 :迷途知返 pwwang.com |
JavaScript手册
|
【目录】 【上一页】 【下一页】 【索引】
AppletIncludes a Java applet in a web page.
创建源The HTML APPLET tag. The JavaScript runtime engine creates an Applet object corresponding to each applet in your document. It puts these objects in an array in the document.applets property. You access an Applet object by indexing this array.To define an applet, use standard HTML语法. If you specify the NAME attribute, you can use the value of that attribute to index into the applets array. To refer to an applet in JavaScript, you must supply the MAYSCRIPT attribute in its definition. 描述The author of an HTML page must permit an applet to access JavaScript by specifying the MAYSCRIPT attribute of the APPLET tag. This prevents an applet from accessing JavaScript on a page without the knowledge of the page author. For example, to allow the musicPicker.class applet access to JavaScript on your page, specify the following:
<APPLET CODE="musicPicker.class" WIDTH=200 HEIGHT=35 For more information on using applets, see the JavaScript Guide. 属性概览All public properties of the applet are available for JavaScript access to the Applet object.方法概览All public methods of the applet示例The following code launches an applet called musicApp:
<APPLET CODE="musicSelect.class" WIDTH=200 HEIGHT=35 更多示例,请看 JavaScript 指南。 参看MimeType, Plugin
【目录】 【上一页】 【下一页】 【索引】 |