unigodx
Programmer
- Jan 1, 2009
- 8
Sorry to ask a very simple question. I do not know a keyword to search.
I have a drop-down list. I want to use if-statement to check whether this list is being focused. Is there any method to check if an element is being focused?
I guess that it will be named like...
element.onFocus()
or
element.onFocusNow()
or something alike.
I will use it like this..
if( myDropDownList.isOnFocusedNow() ){
...//do something
}
Thank you very much.
I have a drop-down list. I want to use if-statement to check whether this list is being focused. Is there any method to check if an element is being focused?
I guess that it will be named like...
element.onFocus()
or
element.onFocusNow()
or something alike.
I will use it like this..
if( myDropDownList.isOnFocusedNow() ){
...//do something
}
Thank you very much.