HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Input Date Object : Find out if a date field automatically gets focus upon page load
The autofocus property sets or returns whether a date field should automatically get focus when the page loads, or not.
This property reflects the HTML autofocus attribute.
Property | |||||
---|---|---|---|---|---|
autofocus | Yes | 12.0 | Yes | Yes | Yes |
Return the autofocus property:
Set the autofocus property:
Value | Description |
---|---|
true|false |
Specifies whether a date field should get focus when the page loads, or not
|
Return Value: | A Boolean, returns true if the date field automatically gets focus when the page loads, otherwise it returns false |
---|
HTML reference: HTML <input> autofocus attribute
❮ Input Date Object