Export (0) Print
Expand All

param element | param object

Sets the initial value of a property for an applet, embed, or object element.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 13.3.2

 

HTML information

Closing Tagforbidden
CSS Display

 

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     param

Members

The param object has these types of members:

Events

The param object has these events.

EventDescription
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.

MethodDescription
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.

PropertyDescription

constructor

Returns a reference to the constructor of an object.

dataFld

Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.

name

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

type

Sets or retrieves the content type of the resource designated by the value attribute.

value

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

valueType

Sets or retrieves the data type of the value attribute.

 

Standards information

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 Internet Explorer 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="&quot;">
  <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> 

 

 

Show:
© 2014 Microsoft