Link to home
Start Free TrialLog in
Avatar of kokshong
kokshong

asked on

disable keystroke, alt+left arrow

hi experts!
how to disable alt+left arrow???
Avatar of justinbillig
justinbillig

can't be done, niether of them trigger an keypress event ... see for yourself


<html>
<body onkeypress="alert( event.keyCode );">

<FORM name=myform method=POST action="">
<INPUT type=button value="Print" onclick="window.print( );">
</FORM>
</body>
</html>
you know whats funny though is i didnt know that you could use alt + arrow keys to navigate your browser until this morning, then i come to work and 2 people have posted about it ... wierd
ASKER CERTIFIED SOLUTION
Avatar of cwolves
cwolves

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kokshong

ASKER

thanks cwolves. but that does not work..
works for me  :-)

what browser?  that code is ie-specific.  same concept for mozilla tho