Answer the question
In order to leave comments, you need to log in
How to remove the onkeypress handler?
I am attaching a handler function to input.
input.onkeypress = function(evt) {
//some code
}
input.onkeypress = function(evt) {
evt.preventDefault();
}
Answer the question
In order to leave comments, you need to log in
function test() {
alert('событие активно');
}
input.addEventListener('keypress', test);
input.removeEventListener('keypress', test);
guess.scritch.org/%2Bguess/?url=gl-nutrition.ru
Webserver Nginx 1.9.12 50%
Framework Yet another PHP framework? Or maybe just a static site?
Language PHP 5.6.18-pl0-gentoo 90%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question