Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

autofocus attribute on input field not working in IE 11

I can't seem to get this working in IE 11, I've created an extremely simple jsfiddle: http://jsfiddle.net/0qwbr7gh/ With the following input box:

<input type="text" autofocus/>

In chrome it works as expected, the input field has focus on load. In IE 11 it doesn't.

Microsoft say it's supported on their website along with an example. And also it says it's supported on: http://caniuse.com/#feat=autofocus

What have I missed?

like image 531
MattjeS Avatar asked Dec 03 '15 14:12

MattjeS


1 Answers

IE11 doesn`t support autofocus (despite is in caniuse). You can check How to make input autofocus in internet explorer?

like image 131
Tales Viegas Avatar answered Sep 28 '22 07:09

Tales Viegas