Skip to content
Advertisement

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?

thanks,

Kishore

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement