LoginSignup
4

More than 5 years have passed since last update.

拡縮(user-scalable)してるかどうかをJavaScriptで判定

Last updated at Posted at 2013-06-05

var zoom = document.body.clientWidth / window.innerWidth;

alert(zoom);

alert(Math.round(zoom * 100) / 100);

参考(というかそのまま)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4