Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi every one.
Is there any sure and cross browser way, to increase and decrease zoom level of browser.
I mean that i wanna 2 buttons + , - if someone click on these button we can Increase(+), and Decrease(-) the browser zoom level by java script.

Any suggestion?
Thanks in advance.
Posted

1 solution

The thing is: browser zoom is not anything like a standard feature, even though I became a commonplace in all well-known browsers, so, how can it be accessible via a standard language like JavaScript? (The standard is EMCAScript, http://en.wikipedia.org/wiki/ECMAScript[^]). You can zoom the content itself, but this is not the same as browser zoom, which works in different ways in different browsers.

See also: http://stackoverflow.com/questions/1055336/changing-the-browser-zoom-level[^].

I would prefer to rely on the browser zoom feature and the user use of it. You business it rather the Web application design tolerant to zooming and looking nice at different reasonable zoom levels.

—SA
 
Share this answer
 
Comments
arminamini 18-Dec-11 2:32am    
Thank u. Good idea, lets rely on the browser zoom feature.
Sergey Alexandrovich Kryukov 18-Dec-11 11:55am    
You are very welcome.

Good luck,
--SA
thatraja 18-Dec-11 3:08am    
5!
Sergey Alexandrovich Kryukov 18-Dec-11 11:55am    
Thank you, Raja.
--SA
Wendelius 18-Dec-11 3:11am    
Good answer, 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900