NAME Attribute | name

HTML (DHTML)

NAME Attribute | name Property

Internet Development Index

Sets or retrieves the name of an input parameter for an element.

What's New for Microsoft® Internet Explorer 6

The name property is now read/write.

Syntax

HTML<PARAM NAME = p... >
ScriptingPARAM.name(v) [ = p ]

Possible Values

pString that specifies or receives the name which is passed to an applet, embed, or object element.

The property is read/write. The property has no default value.

Remarks

In Internet Explorer 3.02 and later, name is an attribute of param. Beginning in Internet Explorer 6, name is a read/write property.

Example

The following example shows how to use the param element to specify a run-time parameter for the object specified by the object element. A Uniform Resource Identifier (URI) is specified for the Microsoft Windows Media® Player control.

<OBJECT CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<PARAM NAME="FileName"
VALUE="http://msdn.microsoft.com/workshop/samples/author/behaviors/media/28movie.asf"
VALUETYPE="ref" TYPE="video/*"/>
</OBJECT>

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

PARAM

See Also

Binding HTML Elements to Data, Introduction to Data Binding