How to detect 100% browser width/zoom using a JavaScript

Well well this seems to be an easy stuff, but for those who are not aware of how to tackle it or tired of goggling around here is what you have to use:


This single line of code will tell you whether browser is zoomed in/out or not. If it returns 1 then browser zoom is 100%.

Have fun !