Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<script>
/* disables copy and paste */
document.getElementById("field_conf_29yf4d2").addEventListener('paste', e => e.preventDefault());
/* disables drag and drop */
document.getElementById("field_conf_29yf4d2").addEventListener('drop', e => e.preventDefault());
/* disables browser autocomplete */
document.getElementById("field_conf_29yf4d2").addEventListener('autocomplete', e => e.preventDefault());
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment