YouTip LogoYouTip

Prop Week Name

# Input Week name Property [![Image 8: Input Week Object Reference](#) 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 ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) 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](#)
← Prop Week NameProp Week Form β†’