autofocus

Read More at MDN DocsView Spec

Safe to Use

autofocus is not safe to use.

It’s supported by 71% of global browsers.

Browsers

ChromeDec 10, 2019v79.0.0
24%98%
There are no users of Chrome running a supported version.
SafariUnsupported
Safari does not support this feature.
EdgeJan 15, 2020v79.0.0
4%100%
There are no users of Edge running a supported version.
FirefoxUnsupported
Firefox does not support this feature.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Dec 10, 2019 v79.0.0
24%98%
There are no users of Chrome running a supported version.
Dec 10, 2019 – Latest
v79.0.0+
24%98%

Full Support

Dec 11, 2008 – Dec 10, 2019
v1.0.0 – v79.0.0
1%2%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Chrome Android
Dec 17, 2019 v79.0.0
39%99%
There are no users of Chrome Android running a supported version.
Dec 17, 2019 – Latest
v79.0.0+
39%99%

Full Support

Jun 27, 2012 – Dec 17, 2019
v18.0.0 – v79.0.0
0%1%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Edge
Jan 15, 2020 v79.0.0
4%100%
There are no users of Edge running a supported version.
Jan 15, 2020 – Latest
v79.0.0+
4%100%

Full Support

Jul 28, 2015 – Jan 15, 2020
v12.0.0 – v79.0.0
0%0%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Firefox
Unsupported
Firefox does not support this feature.
Nov 9, 2004 – Latest
v1.0.0+
3%100%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Firefox for Android
Unsupported
Firefox for Android does not support this feature.
Mar 29, 2011 – Latest
v4.0.0+

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Internet Explorer
Unsupported
Internet Explorer does not support this feature.
Oct 26, 2012 – Latest
v10.0.0+
0%76%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

 
Quest Browser
Unknown v8.0.0
Quest Browser supports this feature.
Unknown
v8.0.0+

Full Support

Unknown
v5.0.0 – v8.0.0

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Opera
Jan 7, 2020 v66.0.0
2%84%
There are no users of Opera running a supported version.
Jan 7, 2020 – Latest
v66.0.0+
2%84%

Full Support

Nov 20, 2012 – Jan 7, 2020
v12.1.0 – v66.0.0
0%21%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Opera Android
Mar 30, 2020 v57.0.0
Opera Android supports this feature.
Mar 30, 2020 – Latest
v57.0.0+

Full Support

Oct 9, 2012 – Mar 30, 2020
v12.1.0 – v57.0.0

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Safari
Unsupported
Safari does not support this feature.
Jun 8, 2009 – Latest
v4.0.0+
4%100%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Safari on iOS
Unsupported
Safari on iOS does not support this feature.
Apr 3, 2010 – Latest
v3.2.0+
17%100%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Samsung Internet
Jun 19, 2020 v12.0.0
2%91%
There are no users of Samsung Internet running a supported version.
Jun 19, 2020 – Latest
v12.0.0+
2%91%

Full Support

Apr 27, 2013 – Jun 19, 2020
v1.0.0 – v12.0.0
0%9%

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

WebView Android
Dec 17, 2019 v79.0.0
WebView Android supports this feature.
Dec 17, 2019 – Latest
v79.0.0+

Full Support

Sep 3, 2014 – Dec 17, 2019
v37.0.0 – v79.0.0

Partial Support

Supported for the <button>, <input>, <select>, and <textarea> elements.

Contribute