Input Week autofocus Attribute
Definition and Usage
autofocus
Attribute to set or return whether the week field should automatically gain focus when the page is loaded.
This property reflects the HTML autofocus attribute.
See also:
HTML Reference Manual:Η ιδιότητα autofocus του HTML <input>
Example
Check if the week field will automatically gain focus when the page is loaded:
var x = document.getElementById("myWeek").autofocus;
Syntax
Return the autofocus attribute:
weekObject.autofocus
Set the autofocus attribute:
weekObject.autofocus = true|false
Attribute value
Value | Description |
---|---|
true|false |
Specify whether the week field should gain focus when the page is loaded.
|
技术细节
Τεχνικές λεπτομέρειες | Επιστροφή τιμής: Αριθμητική τιμή, αν το πεδίο της εβδομάδας αποκτά αυτόματα το φокус όταν φορτώνεται η σελίδα, τότε επιστρέφεται true Αν δεν επιστρέφεται false |
---|
.
Υποστήριξη του προγράμματος περιήγησης | Chrome | Edge | Firefox | Safari |
---|---|---|---|---|
Υποστήριξη του προγράμματος περιήγησης | Chrome | Edge | Firefox | Safari |
10.0 | Opera | 10.0 | 10.0 | 10.0 |
ΥποστήριξηΣημείωση: