HTML | DOM Parameter name Property

The HTML DOM Parameter name Property is used for setting or reyurning the name attribute of a parameter. The name Attribute is used to reference the form-data after submitting the form or to reference the element in a JavaScript.


  • It return the name property. 
  • It is used to set the name property. = name 

Property Values: Accepts a single parameter name and it specifies the name of the Input Image.

Return Value: It returns a string value which represent the name of the Input Image.

Example: This program illustrate how to return the name Property.





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


Before click on the button

After click on the button

Supported Browsers: The browsers supported by DOM Parameter name 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.