smalldady
02-08-2005, 01:21 AM
I'm trying to get the keypress on pocket pc 2002 internet explorer page.
Here's the code that does'nt work
<HTML>
<HEAD>
<TITLE>
Key code detector
</TITLE>
</HEAD>
<BODY onkeydown="jScript:ProcessLocalKeys();">
<SCRIPT Language="JScript">
<!--
function ProcessLocalKeys() {
window.alert("ASCII: " + event.keyCode);
return(false);
}
//-->
</SCRIPT>
Press a key and a message box will display the coresponding ASCII code.
</BODY>
</HTML>
Here's the code that does'nt work
<HTML>
<HEAD>
<TITLE>
Key code detector
</TITLE>
</HEAD>
<BODY onkeydown="jScript:ProcessLocalKeys();">
<SCRIPT Language="JScript">
<!--
function ProcessLocalKeys() {
window.alert("ASCII: " + event.keyCode);
return(false);
}
//-->
</SCRIPT>
Press a key and a message box will display the coresponding ASCII code.
</BODY>
</HTML>