摘要 |
A method and a system for controlling a focus moving on a webpage. When an end position of a focus after moving is inconsistent with a determined target position, an moving offset tolerance zone is determined according to an initial position and the end position, and at least one auxiliary position is set in the determined moving offset tolerance zone; a moving path of a focus moving instruction corresponding to the initial position is set to comprise a first path from the initial position to the set auxiliary position and a second path from the set auxiliary position to the target position, and the focus is controlled to directly move through the auxiliary position to the target position of the focus. In this way, the focus is avoided from moving to a position inconsistent with the target position, thereby improving accuracy and convenience of focus moving. |