Focus panel Opera Mobile 9.7

We use a handheld scanner to move goods from and out of inventory. The scanner launches an ASP page that submits a form to move the item. We recently bought a new scanner running Windows Mobile 6.1 and soon realized that Mobile IE was completely useless. It does not display tables correctly and worse, it does not recognize onblur, onkeypress and many other common javascript functions.

We tested a lot of mobile browsers and found that Opera Mobile 9.7 works fine, except that you set focus to the text input field when the page loads. There are many text fields on the page that submit the form for processing. As soon as one field is scanned (or entered on the keyboard), the form submits itself, processes the input, and resolves the next field in the form. At the end of the markup, select () and focus () are called to select any text in the field and to set focus, so all the user needs to do is check the value. Here is what javascript looks like at the end of the page.

..

document.forms ["frm1"] elements ["txt1"] select (); document.forms. ["frm1"] elements ["txt1"] focus () ;.

Is there a way to set focus on Opera Mobile 9.7?

+2
source share
2 answers

Here 's how to set up field focus in Opera Mobile.

+1
source

You can use autofocus for an input field in Opera 9.7 as follows:

However, it seems that this only works on the first load, after the form is submitted, the field loses focus again. Please let me know if you find a solution.

+1
source

Source: https://habr.com/ru/post/886610/


All Articles