W wxdqz New Member Aug 22, 2008 #1 How can I tell if a text field in a form has focus? Is it something like : <script> if (document.<textfield name here>.focus){alert(true)} else {alert(false)} </script> ? I need some kind of "if(){}" test to check for focus or no focus.
How can I tell if a text field in a form has focus? Is it something like : <script> if (document.<textfield name here>.focus){alert(true)} else {alert(false)} </script> ? I need some kind of "if(){}" test to check for focus or no focus.