Which javascript action to unzoom to fit at 100% the document

Hi,
I have a document on which my customer want to be able to zoom in the entire scene (pinch gesture in a browser).
But when they find a button on the scene and clic it, I want to zoom out to come back to 100% to see the entire document (or scene).

What is the javascript code I can trigger with the button to zoom the whole scene back to 100% ?

Kind regards,

Vincent

found this

https://lab.hakim.se/zoom-js/

and that

Maybe something helps.

Not an easy task if you don’t control the zoom to begin with.

Thank you MaxZieb, I’ll try that.
Let’s continue to search.
Kind regads

I’ll try the solution on your first link, looks very interesting !
Thank you