admin管理员组文章数量:1425752
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?
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?
Share Improve this question edited Apr 11, 2020 at 15:23 Neil 7051 gold badge11 silver badges27 bronze badges asked Feb 20, 2017 at 5:10 Shivam TyagiShivam Tyagi 1682 silver badges12 bronze badges 01 Answer
Reset to default 3you 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>
本文标签: javascriptDisable Chrome for Android text selection popupStack Overflow
版权声明:本文标题:javascript - Disable Chrome for Android text selection popup - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745428940a2658241.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论