Attribute for <EMBED ...>
NAME = "text string"

NAME indicates the name of the embedded object. In most cases this attribute is not needed. However, some types of plugins can be controlled using JavaScript, or can communicate with each other, and those cases NAME comes in handy.

For example, the following code uses Netscape's LiveConnect features to play "hello" when the Hello link is clicked. If the browser is something beside Netscape, then the link works as a regular link. The sound will play a little sooner with Netscape, however, because it has already been downloaded. Note also that Netscape requires that if you use the NAME attribute you must also use MASTERSOUND.

this code produces this
<SCRIPT TYPE="text/javascript">
function soundplay()
if (navigator.appName == "Netscape")
return false;
return true;
onClick="return soundplay()"

About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.