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.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Check Firefox Browser Window State Using JavaScript

by quarkshark on Mon Oct 24, 2016 12:29 pm

Hello,
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");
}
else
{
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!
quarkshark
 
Posts: 1
Joined: Mon Oct 24, 2016 12:02 pm

Return to iMacros for Firefox

Who is online

Users browsing this forum: Google [Bot] and 12 guests

-->