Autofocus attribute in input field not working in IE 11

I cannot get this to work in IE 11, I created an extremely simple jsfiddle: http://jsfiddle.net/0qwbr7gh/ With the following input field:

<input type="text" autofocus/> 

In chrome, it works as expected, the input field focuses on the load. In IE 11, this is not the case.

Microsoft states that it is supported on its website along with an example. And also he says that he supports: http://caniuse.com/#feat=autofocus

What did I miss?

+5
source share
2 answers

IE11 does not support autofocus (despite the fact that in caniuse). You can check How to make input autofocus in Internet Explorer?

+3
source

Well, it's 2019, and IE11 still has poor support for autofocus. I used AngularJS, and the only thing that worked was this:

https://myplanet.imtqy.com/angular-auto-focus/

0
source

Source: https://habr.com/ru/post/1237339/


All Articles