1
I want to disable zoom available in the status bar of IE.
How can I do this? Is it possible using JavaScript?
1
I want to disable zoom available in the status bar of IE.
How can I do this? Is it possible using JavaScript?
3
According to Microsoft, you can disable the zoom feature by adding registry values in HKEY_CURRENT_USER\Software\Policies\Microsoft
.
DWORD
(32-bit) to the subkey called ZoomDisabled and a value of 1.FYI: This solution only works for the end-client, not for arbitrary web pages (which, to my knowledge, cannot disable zooming). – grammar31 – 2010-07-08T20:28:02.120
0
Fundamentally there's no reason to fight a user's DPI settings. If i set Windows to 200dpi and run at a high resolution, then the browser will work.
Your web-site will also work, you don't have to change anything.
The only thing you might want to deal with is the fact that my higher resolution monitor can display higher resolution images, but you continue to feed me those low resolution 540x120 logos.
From MSDN:
Making the Web Bigger: DPI Scaling and Internet
There are times when you might want to know at which DPI Scaling a user is viewing your Web page. You can find this information by querying the screen.deviceXDPI or screen.deviceYDPI DOM property. For example, if the page is zoomed to 125%, screen.deviceXDPI will return 120 (120/96 equals 1.25, or 125%). Note, however, that the value returned is entirely dependent on the zoom state of Internet Explorer and not necessarily the DPI Scaling Setting of Windows. For example, if your Windows DPI Scaling is set to 144 DPI and you are viewing a Web page at 100% zoom, screen.deviceXDPI will return 96 (96/96 equals 1, or 100%), not 144.
Once you have the DPI information, you can:
- Make layout tweaks to optimize for different DPIs.
- Swap in higher-resolution images to take advantage of the extra pixels available to you (thus avoiding the use of imperfect image interpolation).
- Place elements on a Web page relative to the browser chrome.
It's like asking users not to browse your web-site on a Retina Display iPhone because its resolution is too high.
I hope not (the browser is running on my computer using my resources). If you explain why you need this there may be another solution. – Richard – 2010-07-07T08:48:08.880
@Richard i assume he means on his own computer (This is superuser, after all). A good reason to revert to the old zoom behavior (zooming changes text size only), is that IE is very slow at rendering resized content. Flash and animated gifs are especially bad. (Though this will be fixed in ie9 with it's hardware rendering) – Ian Boyd – 2010-07-07T15:59:23.240
@Richard 0
I have to do this in a web application so that user can't zoom. – Vishawjeet Saini – 2010-07-07T17:20:25.603
@Vis - this is not possible. You are sending web pages, which is basically code. This code is interpreted by the browser, on the user's side, to render it as a full page. You can't control the fact that the browser can render it bigger or smaller than what you want, from the website side. This zoom is only a client thing, there is no way to block it from your side. – Gnoupi – 2010-07-07T17:29:20.420
@Vishawjeet: You need to ask development (including creating the web pages) questions on StackOverflow. SuperUser is end user Q&A. – Richard – 2010-07-07T19:41:58.547
@Richard: Ok I will ask in stackoverflow... Thanks for information – Vishawjeet Saini – 2010-07-08T08:59:32.107