Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Learn More

How to set zoom on a element using Javascript on Firefox?

more options

I can change a page element on Chrome using zoom

document.getElementById("pane-side").style.zoom = 0.5

Looks like Firefox did not support zoom, when i run the same code nothing happens.

Im searching for how to use zoom on Firefox, and i got this code:

document.getElementById("pane-side").style["-moz-transform"] = "scale(0.5)" But the result was not what I expected:

https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2021-01-04-17-23-44-fa1a16.png

Im trying to zoom out the element like on Chrome, any advice?

I can change a page element on Chrome using zoom '''document.getElementById("pane-side").style.zoom = 0.5''' Looks like Firefox did not support zoom, when i run the same code nothing happens. Im searching for how to use zoom on Firefox, and i got this code: '''document.getElementById("pane-side").style["-moz-transform"] = "scale(0.5)"''' But the result was not what I expected: https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2021-01-04-17-23-44-fa1a16.png Im trying to zoom out the element like on Chrome, any advice?
Capturas de ecrã anexadas

Todas as respostas (3)

more options

Try this instead:

  • document.getElementById("pane-side").style.transform = "scale(0.5)";
more options

Same result as of document.getElementById("pane-side").style["-moz-transform"] = "scale(0.5)"