11

I want to hide the Chrome for Android text selection popup that is shown if the user selects any text, such that the default text option popup (attached screenshot) does not appear.

Is there anyway to do so using javascript, without removing the text-selection feature as a whole?

enter image description here

Neil
  • 686
  • 1
  • 9
  • 27
Shivam Tyagi
  • 158
  • 1
  • 12

1 Answers1

3

you can use css , like this , try it :)

user-select: none;

.disable-selection{
    -moz-user-select:none;
    -ms-user-select:none;
    -webkit-user-select:none;
}
<p class="disable-selection">can't select this</p>

<p>can select this</p>
GuaHsu
  • 309
  • 3
  • 8
  • sorry about that, and i find this post , maybe you can to try that ? http://stackoverflow.com/questions/3413683/disabling-the-context-menu-on-long-taps-on-android Hope this help :) – GuaHsu Feb 20 '17 at 05:34
  • Thanks for the link but that was something else. Hope, will be able to resolve the same. – Shivam Tyagi Feb 23 '17 at 12:49