Set textbox focus in mobile safari

Posted by Morgan on Stack Overflow See other posts from Stack Overflow or by Morgan
Published on 2010-03-07T23:54:33Z Indexed on 2010/05/31 16:03 UTC
Read the original article Hit count: 865

Filed under:
|
|

Hey, i was wondering how to set the focus to a textbox in mobile safari.

I've tried document.myForm.myTextArea.focus(); which works in regular safari, but it does not seem to work in mobile safari.

To clarify, i want to set focus to a text box as soon as the user loads a page, and have the iphone keyboard pop up.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about mobile