Prop Input Time Name
# Input Time name Property
[ Input Time Object](#)
## Example
Get the name of the time field:
var x = document.getElementById("myTime").name;
The _x_ output will be:
usr_time
[Try it yourself Β»](#)
* * *
## Definition and Usage
The name property is used to set or return the value of the name attribute of a time field.
The name attribute 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 attribute 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 or Firefox browsers do not support the HTML element with the type="time" attribute.
* * *
## Syntax
Return the name property:
_timeObject_.name
Set the name property:
_timeObject_.name=_name_
## Property Values
| Value | Description |
| --- | --- |
| _name_ | Describes the name of the time field |
## Technical Details
| Return Value: | A string representing the name of the time field |
| --- |
* * *
## More Examples
## Example
Change the name of the time field:
document.getElementById("myTime").name = "newTimeName";
[Try it yourself Β»](#)
* * *
## Related Pages
HTML Reference: (#)
* * Input Time Object](#)
YouTip