||View All MessagesBack to WebFX|
Something like this should help you Vadim. You just need to supress the onkeydown event for the up and down arrows. I have tested this in MSIE 6.
Brian R. James
Sent: August 28, 2003
Subject: Re:How to prevent div's content scrolling when keys up and down pressed?
I have a div with vertical scrollbar contained big content (long table).
I want to select rows when pressing keys "up" & "down" instead of scrolling whole content of the div by default.
I wrote keyhandler to hook the keys but with selecting required rows whole content of the div is scrolling also.
the code :
.... handling the key
event.keyCode = 0;
event.cancelBubble = true;
doesn't take effect. Help me pls!