<html> <head> <script> </script> </head> <body> <input type="text" id="txtinput"/> <script> document.all.txtinput.addEventListener("keyup", function(e){ debugger; }) </script> </body> </html>