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
No comments :
Thanks For visiting Infotech Solutuion Blog