test for focus

wxdqz

New Member
How do you test to see if a field has focus? I know that field.focus() will put the focus in that field but how do I find out if a field has focus?

Example:
if( field.focus == true )
{
...
}

I tried this though and it didn't work. Any ideas?

Thanks!
 
Back
Top