Name:<input id="txtname" type="text"/> Welcome! <script> var txtipt = document.getElementById('txtname'); txtipt.addEventListener('keyup', function(){ var text = txtipt.value; console.log('New text is "' + text + '"'); }); </script>
No comments:
Post a Comment