Browser Zoom Level: Detect, Configure Using Javascript

In a frameset with two frames 'rows =', I have a custom zoom level to less than 125% I, encoded to create a “dead space” between frames.

JS detected browser zoom level and can I configure it? Or did I just forget the default coding question? (I saw the CSS “scaling” style, where you can probably set the default zoom levels.)

I also see 'document.body.style.zoom', so it looks like it will be ...

if (zoomLevelChange) {document.body.style.zoom = [some calculations]; }

Any help is appreciated,

+3
source share
1 answer

See How to determine page zoom level in all modern browsers?

Can you change your question only for “tuning”, since the other has a discovery?

+2
source

Source: https://habr.com/ru/post/1748454/


All Articles