Sets the initial value of a property for an applet, embed, or object element.
![]() ![]() |
HTML information
| Closing Tag | forbidden |
|---|---|
| CSS Display |
DOM Information
Inheritance Hierarchy
Members
The param object has these types of members:
Events
The param object has these events.
| Event | Description |
|---|---|
| abort |
Fires when the user aborts the download. |
| change |
Fires when the contents of the object or selection have changed. |
| error |
Fires when an error occurs during object loading. |
| input |
Occurs when the text content of an element is changed through the user interface. |
| load |
Fires immediately after the client loads the object. |
| onselect |
Fires when the current selection changes. |
| reset |
Fires when the user resets a form. |
Methods
The param object has these methods.
| Method | Description |
|---|---|
| getAttributeNodeNS |
Gets an attribute object that matches the specified namespace and name. |
| getAttributeNS |
Gets the value of the specified attribute within the specified namespace. |
| getElementsByClassName |
Gets a collection of objects that are based on the value of the class attribute. |
| getElementsByTagNameNS |
Gets a collection of objects that are based on the specified element names within a specified namespace. |
| hasAttributeNS |
Determines whether an attribute that has the specified namespace and name exists. |
| msMatchesSelector |
Determines whether an object matches the specified selector. |
| removeAttributeNS |
Removes the specified attribute from the object. |
| setAttributeNodeNS |
Sets an attribute object as part of the object. |
| setAttributeNS |
Sets the value of the specified attribute within the specified namespace. |
Properties
The param object has these properties.
| Property | Description |
|---|---|
|
Returns a reference to the constructor of an object. | |
|
Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object. | |
|
Sets or retrieves the name of an input parameter for an element. | |
|
Sets or retrieves the content type of the resource designated by the value attribute. | |
|
Sets or retrieves the value of an input parameter for an element. |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 13.3.2
Remarks
The param element is valid within the applet, embed, and object elements.
Note Properties set by a param element cannot be altered by changing the param object.
After the applet, embed, or object element is instantiated, the property set by the param element cannot be changed with the param object. To change the object's properties, use the script properties exposed by the object.
Examples
This example displays the a Windows Store app using JavaScript Data Binding component's outerHTML so you can view the properties assigned by the param elements. You can perform this check to gather information when debugging an object element's properties. You cannot edit the object's outerHTML property without reinitializing the outerHTML object.
// The OBJECT CLASSID below is for the // Microsoft Internet Explorer Data Binding component // Use just the following HTML and press the button <object id="tdcContents" classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> <param name="DataURL" value="DataBinding.csv"> </object> <button onclick="oTxt.value=tdcContents.outerHTML">Show Object outerHTML</button><br /> <textarea id="oTxt" style="height: 400; width: 450; padding: 3; overflow=auto;"> </textarea> //When the button is pressed the complete list of the object's // PARAM elements display unformatted in the TEXTAREA as follows: <object id="tdcContents" classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> <param name="RowDelim" value=""> <param name="FieldDelim" value=","> <param name="TextQualifier" value="""> <param name="EscapeChar" value=""> <param name="UseHeader" value="0"> <param name="SortAscending" value="-1"> <param name="SortColumn" value=""> <param name="FilterValue" value=""> <param name="FilterCriterion" value="??"> <param name="FilterColumn" value=""> <param name="CharSet" value=""> <param name="Language" value=""> <param name="CaseSensitive" value="-1"> <param name="Sort" value=""> <param name="Filter" value=""> <param name="AppendData" value="0"> <param name="DataURL" value="DataBinding.csv"> <param name="ReadyState" value="4"> </object>
Build date: 11/28/2012

