Skip to content

Capture TAB/SHIFT-TAB on onblur event of a dropdown in javascript

I want to capture Tab and Shift-Tab in the onblur event of a dropdownlist in javascript. Is it possible?




onblur is not enough… You need to capture KeyEvents and check and store if tab/shift-tab are pressed. Then you can check for those keys in the blur-handler.