Creating "text select" functionality (as shown in touchscreen browsers) using JavaScript

I need to create the following functions in javascript:

  • The user should be able to enter the text selection mode (long press on a word or press the highlighted button, how the user enters the text selection mode does not matter)
  • In the text selection mode at the start and end, select two descriptors that will allow the user to expand the selection (users will be able to drag and drop descriptor images to expand the selection).
  • The selected text appears in highlighted mode.

The following is an example of the same functionality in the Android 3.0 browser: enter image description here

, Javascript. "javascript text select", . - , ? .

+5
1

, , , Javascript. Javascript-, , .

  • / , , .

  • HTML- - HTML

,

  • - ( , , HTML5 , , )

  • < -

  • (-webkit- CSS)

  • , Javascript

  • Android Javascript .

+2

All Articles