Jump to content
Sign in to follow this  
NearMadness

Focus status of web object in FireFox

Recommended Posts

NearMadness

Hi,

I need to be able to find out if the user has entered a specific textbox/area in a web form. I am not concerned with HOW he got there (whether it was by tabbing and/or clicking) - just need to know that the text-cursor has entered the object.

A companion (2011) thread shows how this is done in Internet Explorer -- thanks to graciously provided help of a fellow user (monoscout999),

I need to achieve the same objective with AutoIt over any form on Firefox browser.

Hope there is a way!

Edited by NearMadness

Share this post


Link to post
Share on other sites
Danp2

FWIW, document.activeElement will contain the currently selected element. To be notified when a specific element receives focus, you most likely will need to use addEventListener to monitor for when the element receives focus.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×