Amirado
Amirado

Reputation: 1073

Disable browser zoom in IE11

I want to disable zooming in IE11. I found this line

<script>document.firstElementChild.style.zoom = "reset";</script>

doing what I really want but works only in chrome. Is there an alternative for IE11.

Upvotes: 3

Views: 1427

Answers (1)

Aakash Verma
Aakash Verma

Reputation: 3994

Use

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

in the <head> section of your document to prevent scaling the website on mobile devices. Important here is user-scalable=no which makes the trick.

Upvotes: 1

Related Questions