I have a text field after login. After login cursor will be focused on that text field automatically. How can I verify whether cursor/focus is present or not on that text field?
Here is the HTML code of text field:
<input type="text" name="field(TITLE)" id="widget_polarisCommunityInput_113_title">
You could check document.activeElement
This is supported in all major browsers.
See this on SO for more information. This question is probably a duplicate of this one.
Good luck!