javascript - Disable select all (ctrl+a) -
this question has answer here:
i want disable image selecting in website. use code:
-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; but still have problem ctrl+a. there jquery or javascript code disable ctrl+a , select function?
edit : website > http://narenjco.ir/ press ctrl+a in first page , want make sparks unselectable
try this
$(function(){ $(document).keydown(function(objevent) { if (objevent.ctrlkey) { if (objevent.keycode == 65) { return false; } } }); });
Comments
Post a Comment