HTML DOM Input Week name attribute
Examples
Get the name of week field:
var x = document.getElementById ( "myWeek") name.;
x The output is: bdaytime
try it"
Definition and Usage
name attribute is used to set or return the name attribute value week field.
name attribute is typically used to server identifiers submitted form data, or the client as a Javascript reference identification.
Note: Only the name attribute is set, in the form submission to submit data to the server.
Browser Support
All major browsers support name attribute.
Note: Internet Explorer or Firefox browser does not support <input type = "week"> element.
grammar
Returns the name attribute:
weekObject .name
Setting name attribute:
weekObject .name = name
Property Value
value | description |
---|---|
name | It describes the name of the week field |
technical details
return value: | String representing the name of the week field |
---|
More examples
Examples
Modify the name of week field:
. Document.getElementById ( "myWeek") name = "newWeekName";
try it"
Related Pages
HTML Reference Manual: HTML <the INPUT> name attribute
Input Week Objects