Skip to content

Instantly share code, notes, and snippets.

@romanoffs
Created August 10, 2017 16:11
Show Gist options
  • Save romanoffs/6881306d87ed0c65416f807b41ccf8b9 to your computer and use it in GitHub Desktop.
Save romanoffs/6881306d87ed0c65416f807b41ccf8b9 to your computer and use it in GitHub Desktop.
защита от копирования
document.ondragstart = noselect;
document.onselectstart = noselect;
// document.oncontextmenu = noselect;
function noselect() {return false;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment