Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to trap Arrow key event ...

Status
Not open for further replies.

arunjp

Programmer
Jan 10, 2001
29
US
Hi !
Is there any way to trap the arrow key event that works in both IE and NN. Could anyone give me the sample code to do this. Early reply is appreciated, as it is urgent.

Thanks
AJP
 
Hi Jaren !
The link u had given was really very helpful. But my requirement is a bit more restricted. That is, I got to trap the arrow key event from text field which should be browser compatible. Could u help me in this regard.

Thanks
AJP
 
oh, the textfield arrow trapping issue!!! I endured long hours of stress from that problem. I know in IE/NS6 (bubbling), you can trap it onkeydown if you attach a handler to the document. Otherwise, for NS4, I'm not sure, but as events trickle down from the window, you can probably grab them in the document as well. jared@aauser.com -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top