Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to disable copy paste in input js

window.onload = () => {
 const myInput = document.getElementById('myInput');
 myInput.onpaste = e => e.preventDefault();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #copy #paste #input #js
ADD COMMENT
Topic
Name
2+2 =