views:

2310

answers:

2

I have need to create 2 buttons on my site that would change the browser zoom level (+) (-). I'm requesting browser zoom and not css zoom because of image size and layout issues.

Well, is this even possible?

I've heard conflicting reports...

Thanks!

A: 

Not possible in IE, as the UI Zoom button in the status bar is not scriptable. YMMV for other browsers.

jeffamaphone
+2  A: 

I would say not possible in most browsers, at least not without some additional plugins. And in any case I would try to avoid relying on the browser's zoom as the implementations vary (some browsers only zoom the fonts, others zoom the images, too etc). Unless you don't care much about user experience.

If you need a more reliable zoom, then consider zooming the page fonts and images with JavaScript and CSS, or possibly on the server side. The image and layout scaling issues could be addressed this way. Of course, this requires a bit more work.

Eemeli Kantola
Absolutely, thanks. That's probably the approach I'm going to end up taking.
Jourkey