title: How can i disable the ctrl + a using javascript?
body: <pre><code>&lt;script type="text/javascript"&gt;
  
  function mischandler(){
  return false;
  }
  
  function mousehandler(e){
  var myevent = (isNS) ? e : event;
  var eventbutton = (isNS) ? myevent.which : myevent.button;
  if((eventbutton==2)||(eventbutton==3)) return false;
  }
  document.oncontextmenu = mischandler;
  document.onmousedown = mousehandler;
  document.onmouseup = mousehandler;
  var isCtrl = false;
      document.onkeyup=function(e)
      {
      if(e.which == 17)
      isCtrl=false;
      }
  
      document.onkeydown=function(e)
      {
      if(e.which == 17)
      isCtrl=true;
      if((e.which == 85) || (e.which == 67) &amp;&amp; isCtrl == true)
      {
      // alert(‘Keyboard shortcuts are cool!’);
      return false;
      }
      }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Hi all , I using the code to disable the right click and also the <kbd>ctrl</kbd>+<kbd>c</kbd> and <kbd>ctrl</kbd>+<kbd>u</kbd> how to disable the <kbd>ctrl</kbd> <kbd>a</kbd> in the following code. Any help would be great.</p>
  
  <p>Thanks,
  vicky</p>