stewartwebb
Programmer
Hi all,
Is it possible to know whether a field has focus?
Basically what i'm doing at the moment, I have an 'onDblClick' on the form tag which calls a function.
When I double click on any text field on the form the function is called (this works). Now what i'm doing is looping through all the elements on the page and if the element is 'text', I want to check if this field has the focus after the user has double clicked it. Is this possible?
Thanks
Stewart.
Is it possible to know whether a field has focus?
Basically what i'm doing at the moment, I have an 'onDblClick' on the form tag which calls a function.
When I double click on any text field on the form the function is called (this works). Now what i'm doing is looping through all the elements on the page and if the element is 'text', I want to check if this field has the focus after the user has double clicked it. Is this possible?
Thanks
Stewart.