Dave Sag
Dave Sag

Reputation: 13486

How can my webpage tell if the user has enlarged their view?

I am trying to detect if the user of a web application has hit command + (say if they are on a Mac) or otherwise instructed their browser to enlarge the view in their browser.

Is there a standard way to do this with JavaScript?

Upvotes: 1

Views: 74

Answers (1)

Dave Sag
Dave Sag

Reputation: 13486

Okay having reviewed the various options it seems that by using a combination of the browser's onResize() event and Tom Bigelajzen's fork of Yonathan Randolph's 'detect zoom' script does what I need.

Upvotes: 1

Related Questions