Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: getKeyCode()


Message #1 by "in payam eee!!!" <torkian@c...> on Wed, 25 Dec 2002 12:39:46 +0330 (IRT)
This one only works for ie, you have to pass it the event for NN


<script language="JavaScript" type="text/JavaScript">
function keyProcess()
{
	alert(event.keyCode);
}

</script>

<body  >
<form action="http://www.yahoo.com" method="post">
<input name="test" type="text" onkeydown="keyProcess()">
  <textarea name="textb" cols="20" rows="20"
onkeydown="keyProcess()"></textarea>
</form>
</body>

Earl Robb


-----Original Message-----
From: in payam eee!!! [mailto:torkian@c...] 
Sent: Wednesday, December 25, 2002 4:10 AM
To: javascript
Subject: [javascript] getKeyCode()


hello!
I want my textarea to return me the code of the key anytime that I type
a char in it. what's your suggestion for SALAM function? :  <textarea
onKeyDown=" SALAM ">  </textarea>






  Return to Index