example code
<input name="text" value="" onkeypress="inputValidation()">
<script type="text/vbscript">
Sub inputValidation
With window.event
msgbox .keyCode
End With
End Sub
</script>
when i press key "0" then msgbox = 48
when i press key "0" on the internet part of keyboard, then msgbox = 48
----------------------------------------------------------------
<input name="text" value="" onkeydown="inputValidation()">
<script type="text/vbscript">
Sub inputValidation
With window.event
msgbox .keyCode
End With
End Sub
</script>
when i press key "0" then msgbox = 48
when i press key "0" on the internet part of keyboard, then msgbox = 96
why it is ? , why when i use onkeydown or onkeypress i get different keyCodes ?