Prop Week Name
# Input Week name Property
[ Input Week Object](#)
## Example
Get the name of the week field:
var x = document.getElementById("myWeek").name;
The _x_ output will be:
bdaytime
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The name property is used to set or return the value of the name attribute of a week field.
The name attribute is typically used as an identifier to submit form data to the server, or as a reference identifier for JavaScript on the client side.
**Note:** The name attribute must be set for data to be submitted to the server after the form is submitted.
* * *
## Browser Support

The name property is supported by all major browsers.
**Note:** Internet Explorer and Firefox do not support the element.
* * *
## Syntax
Return the name property:
_weekObject_.name
Set the name property:
_weekObject_.name=_name_
## Property Values
| Value | Description |
| --- | --- |
| _name_ | Specifies the name of the week field |
## Technical Details
| Return Value: | A string representing the name of the week field |
| --- |
* * *
## More Examples
## Example
Change the name of the week field:
document.getElementById("myWeek").name = "newWeekName";
[Try it Yourself Β»](#)
* * *
## Related Pages
HTML Reference: (#)
* * Input Week Object](#)
YouTip