Cursor control method and device
A cursor control and position display technology, applied in the computer field, can solve problems such as no user setting, cursor user can not be clearly defined, etc., to achieve the effect of good compatibility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0044] The present invention provides a first embodiment of a cursor control method, including:
[0045] 101. When the selected object is an input box, determine whether the browser supports the DOM activeElement attribute of H5.
[0046] It should be noted that the DOM activeElement attribute is an attribute of H5, which belongs to the prior art, and will not be described in detail here.
[0047] 102. If the browser supports the DOM activeElement attribute of H5, call the DOM activeElement attribute, and set the start position and end position of the selection area to be the same, so as to display the cursor in the input box.
[0048] In the DOM activeElement attribute, selectionStart and selectionEnd represent the start position and end position of the selection area respectively, and setting the start position and end position of the selection area to be the same can realize displaying the cursor at a certain position.
[0049] 103. If the browser does not support the DOM ...
no. 2 example
[0052] The present invention provides a second embodiment of a cursor control method, including:
[0053] 201. Determine whether the object selected by the user in the browser is an input box.
[0054] Because in the browser, the user can select various objects, for example, it can be a button, an input box, a picture, or a text.
[0055] 202. When the selected object is an input box, determine whether the browser supports the DOM activeElement attribute of H5.
[0056] The content of step 202 is the same as that of step 101 in the first embodiment of the present application. For specific description, please refer to the content of step 101 in the first embodiment, and details are not repeated here.
[0057]203. If the browser supports the DOM activeElement attribute of H5, call the DOM activeElement attribute, and set the start position and end position of the selection area to be the same, so as to display the cursor in the input box.
[0058] The content of step 203 is th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



