How can I detect the page zoom level in all modern browsers? While this thread tells how to do it in IE7 and IE8, I can\'t find a good cross-browser solution.
On Chrome
var ratio = (screen.availWidth / document.documentElement.clientWidth); var zoomLevel = Number(ratio.toFixed(1).replace(".", "") + "0");