We found that this code works on a PC with: IE, Safari and FireFox. However on an iPad or iPhone with Safari it does not auto focus on a textbox. We cannot touch the screen and click the textbox, we need the auto focus. Any tips here?
thanks!
<script language='JavaScript'>
<!--
function SetFocus()
{
document.form1['txtCode'].focus();
}
window.onload = SetFocus;
// -->
</script>
Unfortunately, it appears Mobile Safari does not support this behaviour, by design.
http://www.quora.com/Mobile-Safari-iPhone-or-iPad-with-JavaScript-how-can-I-launch-the-on-screen-keyboard
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With