<input type="text" id="nwF1"> <script> document.querySelector('#nwF1').addEventListener( 'input', function(){ alert( this.value ) }); </script>