You are here: Reference > JavaScript > client-side > HTML DOM > properties > name (param)

name property (param)

Browser support:
Specifies or returns what data is being passed in the value property to the object.
The value of the name property could be case-sensitive depending on the embedded object.

You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: name

Possible values:

String that sets or retrieves the name of the parameter.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the name attribute with Macromedia Flash Player.
The codeBase attribute of the object tag is missing from this example. You can check the version of the user's Flash player with this attribute in Internet Explorer, and if it does not exist or its version is lower than required, the browser pops up an installation dialog. Unfortunately the use of the codeBase attribute causes problems in Firefox. See the codeBase attribute for details.
<object data="flash.swf" type="application/x-shockwave-flash" width="300px" height="200px"
        <!-- If flash player is not installed, pluginurl helps the user to download it in Firefox -->
    <param name="pluginurl" value="" />
    <param name="movie" value="flash.swf" />  
    <param name="bgcolor" value="#FFFFE0" />  
    <param name="quality" value="high" />
Did you find this example helpful? yes no

Example HTML code 2:

This example has similar functionality to the previous one, but it creates the Macromedia Flash Movie dynamically. For the usage of the name property, see the flash.js file.
    <script type="text/javascript" src="flash.js"></script>
    <script type="text/javascript">
        function CreateFlash () {
            var flashContainer = document.getElementById ("flashContainer");
            var flash = new Flash ();
            flash.Init (flashContainer, "flash.swf", 300, 200);
            flash.SetParam ('bgcolor', '#000000');
            flash.SetParam ('quality', 'high');
            flash.Create ();
<body onload="CreateFlash ()">
    <div id="flashContainer"></div>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content