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

value property (param)

Browser support:
Specifies or returns the value of a run-time parameter specified by name.
The meaning of the value property depends on the value of the name property. The name property specifies the type of data.

Syntax:

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

Possible values:

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

Example HTML code 1:

This example illustrates the use of the value attribute:
Code
HelloWorld.java
<object type="application/x-java-applet" code="HelloWorld.class" width="200px" height="50px">
    <param name="codebase" value="/external/examples/common/java/" />
</object>
Did you find this example helpful? yes no

Example HTML code 2:

This example illustrates the use of the value property with Windows Media Player:
<head>
    <script type="text/javascript">
        function GetValue () {
            var paramTag = document.getElementById ("baseFolder");
            alert (paramTag.value);
        }
    </script>
</head>
<body>
    <object type="application/x-java-applet" code="HelloWorld.class" width="200px" height="50px">
        <param id="baseFolder" name="codebase" value="/external/examples/common/java/" />
    </object>

    <button onclick="GetValue ();">Get value of codebase parameter!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content