JavaScript onkeyup Event


JavaScript onkeyup Event 


<!doctype html>
<html>
<head>
 <title> JavaScript onkeyup Event </title>
</head>
<body>

   <input type="text" onkeyup="keyup1()" 
   placeholder="Enter your name" id="txt"> : 
   <h1 id="txt1"> </h1>

   <script>
      function keyup1(){
    var x = document.getElementById("txt").value;
   document.getElementById("txt1").innerHTML = x;
  }
   </script>

</body>
</html>
Post A Comment
  • Blogger Comment using Blogger
  • Facebook Comment using Facebook
  • Disqus Comment using Disqus

No comments :

Thanks For visiting Infotech Solutuion Blog