Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | DOM Parameter name Property

Improve Article
Save Article
  • Last Updated : 10 Jun, 2021
Improve Article
Save Article

The HTML DOM Parameter name Property is used for setting or returning 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 parameter element
Return Value: It returns a string value which represent the name of the parameter element.
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
Related Articles

Start Your Coding Journey Now!