• ARVIND ADMIN 6
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
i have writen the code for Alpha-Numeric keys  but it working for all keys in the keyboard (delete,backspace,enter,arrowkeys.............)

The piece of code is 
<apex:page >
  <script>
  function keyup()
  {
  alert("key up calles");
  }
  function keypress()
  {
  alert('key press calles');
  }
  function keydown()
  {
  alert('key down calles');
  }
  </script>
  <apex:form >
  Name:<input type = "text" onkeyup="keyup()"/><br/>
  Email:<input type = "text" onkeypress="keypress()"/><br/>
  PhoneNumber:<input type= "text" onkeydown= "keydown()"/><br/>
  </apex:form>
  
</apex:page>

 
i have writen the code for Alpha-Numeric keys  but it working for all keys in the keyboard (delete,backspace,enter,arrowkeys.............)

The piece of code is 
<apex:page >
  <script>
  function keyup()
  {
  alert("key up calles");
  }
  function keypress()
  {
  alert('key press calles');
  }
  function keydown()
  {
  alert('key down calles');
  }
  </script>
  <apex:form >
  Name:<input type = "text" onkeyup="keyup()"/><br/>
  Email:<input type = "text" onkeypress="keypress()"/><br/>
  PhoneNumber:<input type= "text" onkeydown= "keydown()"/><br/>
  </apex:form>
  
</apex:page>