This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The getTargetRanges() property of the InputEvent interface returns an array of static ranges that will be affected by a change to the DOM if the input event is not canceled.


var staticRanges[] = inputEvent.getTargetRanges()



Return value

An array of StaticRange objects.


Specification Status Comment
Input Events Level 2
The definition of 'getTargetRanges()' in that specification.
Working Draft Initial definition.

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support60 No No No4710.1
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6060 No No4710.1 ?

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley
Last updated by: fscholz,