Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 20, 2020 11:08 pm GMT

Can JavaScript Detect the Browsers Zoom Level?

No, not really.

My first guess was that this was intentionally not exposed in browsers because browsers intentionally don’t want us fighting it or making well-intentioned but bad-outcome decisions based on that info. But I don’t see any evidence of that.

StackOverflow answers paint how weird cross-browser it can be. This script from 2013 works for me in Chrome, but not at all in Safari and reports incorrectly in Firefox. Even if that script worked, it relies on user … Read article “Can JavaScript Detect the Browser’s Zoom Level?”

The post Can JavaScript Detect the Browser’s Zoom Level? appeared first on CSS-Tricks.


Original Link: https://css-tricks.com/can-javascript-detect-the-browsers-zoom-level/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks