Click to See Complete Forum and Search --> : Handling Browser Events


jack_99
July 8th, 2008, 04:12 PM
Hi. I have done some windows application development using .NET framework. But recently, I had to work on a web application developed in ASP.NET C#. I was wondering where would I find the events to handle the keyboard inputs for the browser window? I mean when run the web application in the browser window, I should be able to handle it using the keyboard as well... a simple example would be the use of backspace button or the use of return/enter button to execute the default command button.

Jack

PeejAvery
July 9th, 2008, 02:47 PM
Most keyboard based navigation is handled directly by the browser. For example, if you have a form, tabbing will get you through the elements. However, the browser itself also has event which can be used for interaction. These events must be invoked from a client-side language such as JavaScript or VBScript (IE only).

If you are looking to writing some shortcut keys, this you will have to do with JavaScript and a simple hook of events.

http://www.google.com/search?source=ig&hl=en&rlz=&q=javascript+keyboard+shortcuts&btnG=Google+Search