Display Asic value Of the Character When Onkeyup Event Occur in Html

Algorithm
Start the program.In the body section declare the OnKeyUP equal to whichbutton(event)
Whichbutton is the function.So when the Key up it pass there appropriate asic value to the function to the whichButton fucntion.It display the value by through event.keyCode parameter.After display the value termiante the Event program.These Onkeyup is simillar to the onClickDown.OnkeyDown it is perfrom there opertion when key down. Onkeyup it fires event when key up.
<html>
<head>
<script language="javascript">
function whichButton(event)
{
alert("The key code is " +event.keyCode);
}
</script>
</head>
<Body onKeyUp="whichButton(event)" bgcolor="#ffe4c4">
<br><h1><font face="arial" color="brown"><u>
Keyboard Event:</u></font></h1><hr><hr><br><font face="verdona" color="blue" size=5>
<p>Press any key on your keyboard!<br>
An alert box will pop up to show you the keycode of the keypressed</p></font>
</body>
</html>

onkeyup event in Dhtml keycode

Post a Comment

1 Comments

  1. Hi,

    I haven't received the payment from Adsense as yet. The account is less then one month old. As I told you earlier you won't able to get the check as you have to mentioned your country as Pakistan or some other country other then India and china. But you can get the money through EFT directly into your Bank A/c.

    I got the account by paying Rs 3000 but with this trick you can get it free. You can change the country later after having the healthy impression or money over $ 50 in your account. Here you can find the more details https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=32841 . But don't apply for the country change straight away as suggested by the person who gave me the account.

    Do let me know if you able to get the account with this trick and don't share this trick over forums and blogs.
    Thanks
    Abhinav

    ReplyDelete