Latest web development tutorials
 

HTML DOM Parameter Object


Parameter Object

The Parameter object represents an HTML <param> element.

The <param> element is used to define parameters for plugins embedded with an <object> element.

Access a Parameter Object

You can access a <param> element by using getElementById():

Example

var x = document.getElementById("myParam");
Try it Yourself »

Create a Parameter Object

You can create a <param> element by using the document.createElement() method:

Example

var x = document.createElement("PARAM");
Try it Yourself »

Parameter Object Properties

Property Description
name Sets or returns the value of the name attribute of a parameter
value Sets or returns the value of the value attribute of a parameter

Standard Properties and Events

The Parameter object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Plug-ins

HTML reference: HTML <param> tag

HTML reference: HTML <object> tag