7 Replies Latest reply on Feb 7, 2012 1:17 AM by Darryn Campbell

    AutoFocus Text Box

    Tim Leland

      I would like my app to autofocus to the first text box. I have tried using HTML5 Autofocus and a javascript version. Both work in Google Chrome but will not in Rho.

       

      Here is the javascript version:

      <script type="text/javascript">
         function formfocus() {
            document.getElementById('element').focus();
         }
         window.onload = formfocus;
      </script>

       

      HTML 5 Version:

      First name:<input type="text" name="fname" autofocus="autofocus"

       

      Any ideas why this wouldnt work