This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The toRange()
property of the StaticRange
interface converts the StaticRange
object to a Range
object.
Syntax
var range = staticRange.toRange()
Parameters
None.
Return value
A new Range
object.
Specifications
Specification | Status | Comment |
---|---|---|
Static Range The definition of 'toRange()' in that specification. |
Editor's Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
toRange() | Chrome Full support 60 | Edge Full support 18 | Firefox No support No | IE No support No | Opera Full support 47 | Safari No support No | WebView Android Full support 60 | Chrome Android Full support 60 | Firefox Android No support No | Opera Android Full support 44 | Safari iOS No support No | Samsung Internet Android Full support 8.0 |
Legend
- Full support
- Full support
- No support
- No support