Hi,
I am trying to display an alert box if the user pushes Ctrl+M. So far I can make it do it by pushing M but am having problems detecting a key combination.
My script is as follows:
Thanks very much
Ed
I am trying to display an alert box if the user pushes Ctrl+M. So far I can make it do it by pushing M but am having problems detecting a key combination.
My script is as follows:
Code:
<script type="text/javascript">
document.onkeyup = KeyCheck;
function KeyCheck()
{
var KeyID = event.keyCode;
switch(KeyID)
{
case 77:
alert('User Menu');
break;
}
}
</script>
Thanks very much
Ed