I have a web application that I'd like to implement the following behavior.
When you click on a specific link:
If the user has more than one monitor - open the url in a window with a given name.
Otherwise - change the iframe's src attribute to that of the url.
How do I detect the monitor count in JavaScript?
If it's impossible, a Chrome only solution would also work since this is for an intranet app.