Hi,
I want to capture Tab and Shift-Tab in the onblur event of a dropdownlist in javascript. Is it possible?
Help Please
thanks,
Kishore
Hi,
I want to capture Tab and Shift-Tab in the onblur event of a dropdownlist in javascript. Is it possible?
Help Please
thanks,
Kishore
For what purpose? I'm not sure if there's a better way to do it but you could have a couple of global boolean variables for Tab and Shift. Add keydown and keyup methods to toggle the booleans accordingly. Then during the Blur you can just do a logical check on the two.
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.