[thelist] capturing key combination CTRL+8 with Dom
Scott Blanchard
sblanchard at octigon.com
Fri Aug 22 16:22:17 CDT 2003
I need to fire a function when someone enters CTRL+8. I can do it in IE
fine, but Netscape 7 does not respond. Here's my code:
document.onkeypress=checkHandles;
function checkHandles(){
if(window.event.ctrlKey && window.event.keyCode == 56){
alert("bingo");
}
}
Is there a way to do this that is cross platform and works with all
getElementById browsers ???
More information about the thelist
mailing list