Skip to content

Instantly share code, notes, and snippets.

@ralexrdz
Created April 17, 2024 17:24
Show Gist options
  • Save ralexrdz/7333c42eae8fd6dca6c9378200c85f80 to your computer and use it in GitHub Desktop.
Save ralexrdz/7333c42eae8fd6dca6c9378200c85f80 to your computer and use it in GitHub Desktop.
Allow Paste
(function(){var inputs=document.querySelectorAll('input');for(var i=0;i<inputs.length;i++){inputs[i].setAttribute('onpaste','');}console.log('onpaste attribute set on all input tags');})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment