Hello there, I would very much appreciate a solution to this annoying problem if there is one!
I have built a very simple screen for use with a windows mobile pda using internet explorer.
The solution is for packers in a warehouse using a the pda with an inbuilt bar code scanner. All the screen does is to scan an order number in bar code format from the front of an envelope. Once a sucessful scan takes place, it simply re-loads in preperation for another scan.
In principal this works really well, the users can scan envelopes very quickly one after another and the screen simply reloads with the focus already on the input box in question. I use <body onLoad="scan.order_id.focu
s( )"> to automatically give the text box the focus.
However ... there is a problem...
Because the devices are touch screen and they sometimes accidentally touch the screen when they put it down or put it in their pocket, they lose the focus!
Any press on the screen, even just the background of the form, loses the focus and when they come to scan again, the focus is lost and of course if therefore doesn't work.
So, ... the question is. Is there any way I can keep the focus on an input text box even if the user clicks anywhere else on the page?
Many thanks in advance :-)
Start Free Trial