
/* You can attach the events to any element. In the following example
I'll disable selecting text in an element with the id 'content'. */

window.onload = function() {
  var element = document.getElementById('body');
  element.onselectstart = function () { return false; } // ie
  element.onmousedown = function () { return false; } // mozilla
}

/*window.onload = function() {
  var element2 = document.getElementByName('select');
  element2.onselectstart = function () { return true; } // ie
  element2.onmousedown = function () { return true; } // mozilla
}

