Jump to content

htmlframe tab key


jahlxx

Recommended Posts

Hi.

In an htmlframe, I load an html file that contains an html form.

All is OK, and correctly shown, but when I press Tab key, the focus don't move between html form elements, it moves between unigui elements.

 

How can I solve this?

 

Thanks.

 

Link to comment
Share on other sites

Are you sure the form input fields are not accidentally set to "readonly"?

Try this to verify:

After loading the html make sure focus is set to the required input field.
You can either use the "autofocus" attribute, e.g.

 <input type="text" id="name" autofocus>

or insert the following script at the end of the body tag of your html.

    <script>
       $(document).ready(function(){
         $('#name').focus();
       });
    </script>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...