admin管理员组

文章数量:1287554

In ExtJs there is an "focus" event listener for Ext.form.Text (alias - textfield), it forks just fine. But i actually nead to catch "lost focus" event for textfield.

Is there a event listner in ExtJs or JavaScript, that will help me to handle "lost focus" event?

In ExtJs there is an "focus" event listener for Ext.form.Text (alias - textfield), it forks just fine. But i actually nead to catch "lost focus" event for textfield.

Is there a event listner in ExtJs or JavaScript, that will help me to handle "lost focus" event?

Share Improve this question asked Apr 1, 2011 at 8:38 obenjiroobenjiro 3,7607 gold badges49 silver badges82 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 10

The event you're looking for is blur.

focus and blur are not fired at the same time.... don't forget that when you give focus to a radio, you also loose focus(blur) by another radio, then the two events fired are a focus event for the radio you are selecting a blur event for the radio you are deselecting. that's the trick!!

本文标签: javascriptExtJs 3 or 4LostFocus eventStack Overflow