How do I focus an HTML text field on an iPhone (causing the keyboard to come up)?
- by Ross
I'm writing an iPhone web app, and I want to automatically focus a text field when the page is loaded, bringing up the keyboard. The usual Javascript:
input.focus();
doesn't seem to be working. Any ideas?