Check Firefox Browser Window State Using JavaScript

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Posts: 1
Joined: Mon Oct 24, 2016 7:02 pm

Check Firefox Browser Window State Using JavaScript

Post by quarkshark » Mon Oct 24, 2016 7:29 pm

I've tried to check if Firefox is minimized or if it is focused but only get undefined firefoxMinimized variable value.

Code: Select all

var firefoxMinimized=window.windowState;
If (firefoxMinimized === 2)
iimDisplay ("Minimized");
iimDisplay ("Maximized");
Am I doing something wrong or can I check this in Imacros for Firefox addon?
If not than how can I do this and get the state inside imacros javascript?

Thank You for Your help!
Post Reply