Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

timstring

macrumors newbie
Original poster
Jan 31, 2012
2
0
texas
I have this Javascript in a web page with a form and text field:

<script>
setTimeout("document.LogIn.InputUser.focus()",500);
</script>

On my desktop version of Safari, it automatically puts the cursor in the field "InputUser" in the form "LogIn". This does not work at all on my iPhone. When a user accesses my page, I want the cursor in the top field with the keyboard visible. Is there a way to do this that works? Type slowly and keep the code simple--I'm still a neophyte.

thanks in advance,
tim
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.