Search code examples
javascriptjqueryhtmlmeta-tags

Disable page resize HTML


I am trying to figure out how to disable the zoom function on a browser where the user can use the keyboard to enlarge text/images. The "Command +" and "Command -" function on the keyboard. How can I disable this function?

I have seen it done with annualreport.elevationchurch.org


Solution

  • You could try using keyboard events to make a null, or pop up saying zoom disabled, event when users hit - or +.

    http://api.jquery.com/category/events/keyboard-events/

    Though that`s not the only way to zoom. You can also use your mouse or on certain browsers click view>zoom in.

    I strongly recommend you don`t do that or try to disable zoom.