Code window.onload = function() { document.getElementById('content').oncopy = function() { alert('No copying allowed'); return false; }; }