HTML DOM Input Week autofocus attribute
Examples
View week field is automatically get the focus when the page is loaded:
var x = document.getElementById ( "myWeek") autofocus.;
x The output is: true
try it"
Definition and Usage
autofocus property sets or returns the week field is automatically get the focus when the page is loaded.
This property reflects the HTML autofocus property.
Browser Support
All major browsers support the autofocus attribute
Note: Internet Explorer 9 and earlier versions of IE or Opera 12 or earlier version of Opera browser does not support autofocus attribute.
Note: Internet Explorer or Firefox browser does not support <input type = "week"> element.
grammar
Back autofocus properties:
weekObject .autofocus
Setting autofocus properties:
weekObject .autofocus = true | false
Property Value
value | description |
---|---|
true | false | Describes the fields in the week whether to acquire focus when the page loads
|
technical details
return value: | Boolean field if the page week after loading automatically get the focus returns true, otherwise returns false. |
---|
Related Pages
HTML Reference Manual: HTML <the INPUT> The autofocus attribute
Input Week Objects