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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -