[ACCEPTED]-How can you autofocus on a form field in iPhone Safari?-mobile-safari

Accepted answer
Score: 17

According to this page, autofocus is not supported 1 in iphone/ipad for usability reasons.

Score: 0

Try to give the input element a type

<input type="email" id="element" autofocus/>

and 1 for fallback you can use

<script type="text/javascript">
    if (!("autofocus" in document.createElement("input"))) {

More Related questions