0

This is a follow up to my previously asked question about trackpad based zooming in Chromium based browsers, but it's a different question.

I want to programmatically set the zoom level in a browser window. This seems to be a common demand, as some prior (very old though) questions show:

However all those questions seem to get answers suggesting to set body.style.zoom or body.style.transform. But this seems to be a different thing, e.g. the zoom level indicated in the navigation bar does not change, elements are being drawn differently and after a reload these settings are gone.

So - risking down-votes for redundantly asking questions - in 2023 is there a way (at least in Chromium based browsers) to set the zoom level as indicated in the navigation bar programmatically (i.e. in JavaScript)?

frans
  • 8,868
  • 11
  • 58
  • 132
  • Please don’t ask questions that are duplicates except for a sentence that says “Is the answer different now that time has passed?” instead you can [offer a bounty](https://stackoverflow.com/help/bounty) on the existing question. – Quentin Jul 23 '23 at 10:53
  • My question is not a duplicate as I pointed out. The OPs of the referenced questions seemed to be ok with just the `body` element to be drawn scaled or they needed to know the scaling. I'm explicitly asking for 'the zoom level as indicated in the navigation bar', which is not touched by the linked questions. – frans Jul 23 '23 at 11:12
  • The accepted answer on the duplicate says “not possible in most browsers” (and then goes on to offer alternatives). – Quentin Jul 23 '23 at 11:16

0 Answers0