This refers to the page zoom level caused by Ctrl + scroll wheel
Use Math.round(window.devicePixelRatio * 100);
That’s it.
…
The post How to detect the zoom level of a page first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/9789
This site is for inclusion only, and the copyright belongs to the original author.