value property (param)
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:
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:
|
|||||
<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?
|
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?
|
Supported by objects:
HTML elements:
Related pages:
External links:
User Contributed Comments