Focused text field

wxdqz

New Member
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.
 
Back
Top