Solve the "Focus Control" on the web page TINTOWN [original]

xiaoxiao2021-03-06  115

Solve the "focus control" method on the web page For B / S system, it is not as good as the C / S system on page control, such as the focus issue of the input, customers want to enter the data through the keyboard, so I want to have 90 people in 100 customers. So the solution to the focus can get the problem is necessary. You can find some ways from the Internet, but it is more troublesome, I will introduce a very convenient. Effective method is also very good Give everyone. I saw MS's ASP.NET lecture for some time. I talked about how to let the "Enter key" to move the focus of the text box. One of them, the best one is like this. : Use the client script to add Document onKeyDown events on the page, let the page after receiving the carriage return, that is, as long as the Event's keycode is changed to 9 VBScript code: