Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
/* 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());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment