msContentZoom

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The msContentZoom event fires when a user zooms the element (changes the scale of the content).

Zoomed elements can expose their zoom level through msContentZoom (ie. scrollTop/Left). The zoom level can be reset with Element.msZoomTo().

This proprietary method is specific to Internet Explorer and Microsoft Edge.

Syntax

object.addEventListener("MSContentZoom", handler, useCapture)

Event handler parameters

  • handler[in], type=function, Function name to be executed when the event is triggered.

Example

  contentZoom.addEventListener("MSContentZoom", function(e) {
     zoomFactor.value = contentZoom.msContentZoomFactor.toFixed(2);
  });

See also

Document Tags and Contributors

Contributors to this page: ExE-Boss, mattwojo, erikadoyle
Last updated by: ExE-Boss,