Home Tutorial Javascript JavaScript onkeyup event

 
 

JavaScript onkeyup event
Posted on: August 12, 2010 at 12:00 AM
This section illustrates you the onkeyup event.

JavaScript onkeyup event

This section illustrates you the onkeyup event. It occurs when the user releases a key from its depressed position. Here we have created two textboxes. As the user user enter the text in first textbox, the same value will get display simultaneously.

Here is the code:

<html>
<
head>
<
script language="JavaScript">
function function1() {
document.getElementById("text2").value=document.getElementById("text1").value;
}
</
script>
</
head>
<
input type="text" id="text1" onkeyup="function1()">
<
input type="text" id="text2">
</
body>
</
html>

Output:

Related Tags for JavaScript onkeyup event:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.