Prop Number Name
# Input Number name property
[ Input Number Object](#)
## Example
Get the name of the number field:
var x = document.getElementById("myNumber").name;
The output of _x_ is:
quantity
[Try it Β»](#)
* * *
## Definition and Usage
The name property is used to set or return the value of the name attribute of a number field.
The name property is typically used as an identifier for submitting form data to the server, or as a reference identifier for JavaScript on the client side.
**Note:** Only when the name property is set can data be submitted to the server after the form is submitted.
* * *
## Browser Support

The name property is supported by all major browsers.
**Note:** Internet Explorer 9 and earlier versions do not support the element with the type="number" attribute.
* * *
## Syntax
Return the name property:
_numberObject_.name
Set the name property:
_numberObject_.name=_name_
## Property Values
| Value | Description |
| --- | --- |
| _name_ | Describes the name of the number field |
## Technical Details
| Return Value: | A string representing the name of the number field |
| --- |
* * *
## More Examples
## Example
Change the name of the number field:
document.getElementById("myNumber").name = "newNumberName";
[Try it Β»](#)
* * *
## Related Pages
HTML Reference Manual: (#)
* * Input Number Object](#)
YouTip