document.getElementById("li2").onkeyup = document.getElementById("li2").onkeypress = document.getElementById("li2").onkeydown = function(event) { event.preventDefault(); event.stopPropagation() };