HTML | DOM Parameter value Property

The HTML DOM Parameter value Property is used to set or return the value of the value attribute of a parameter, however, the contents of the value attribute do not shown to the user. When the form is submitted by the user, the value and the other information sent to the server. But when the checkbox is an unchecked state, therefore, no information will be sent.


  • It return the value property:
  • It is used to set the value property.
    parameterObject.value = value 

Property Values It contains single value text which is used to specify the value associated with the parameter.

Return Value: It returns a string value that represents the value of the value attribute of a parameter.

Example 1: This example returns the name property.





<!DOCTYPE html> 
        HTML DOM Parameter value Property 
    HTML DOM Parameter value Property
    <h4>Click the button</h4
    <button onclick="GFG()">Click Here!<br
        <object data="sample.mp4"
            <param id="myParam" name="Autoplay" value="true"
    <p id="Geeks"></p
        function GFG() { 
                var x = document.getElementById("myParam").value; 
        document.getElementById("Geeks").innerHTML = x; 


Before clicking on the Button:

After clicking on the Button:

Supported Browsers: The browsers supported by DOM Parameter value Property are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.