trap keypress and keydown event in asp.net mobile form

J

jaspal singh

How can i trap the KayPress and Keydown event using asp.net mobile form.
for example
<script language="javascript" for="window" event="onload()">
document.getElementById("TEST").focus();
function keypress(e)
{
alert(window.event.keycode)
}

function keydown(e)
{
alert(window.event.keycode)
}
document.onkeypress = keypress
document.onkeydown=keydown
</script>

the above code is working fine on IE6.0 but not working on pocket IE 2.0

Thanks
Jasapl Singh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top