I want to make it so that when you open the page, it opens as if the user himself increased the page through "ctr +" to 300%.

Is it possible to access browser zoom via JS, if yes, how?

    1 answer 1

    Try:

    document.body.style.zoom = 3 
    • one
      Thanks, it works but not everywhere: chrome, safari, IE7, IE8, IE9 (a small horizontal scrollbar bug appeared, but it is removed through the body {overflow: hidden}) But Opera and Mozilla do not want to zoom - omgwtf
    • one
      onload = "javascript: document.body.style.zoom = 2.905" (at 2.905 - 300px becomes 900px) style = style is added to the body = "zoom: 2.905" and opera and Mozilla do not handle this zoom and even IE does not behave correctly - omgwtf
    • this is not what i wanted - omgwtf