Name
createRange( ) — NN n/a IE 4 DOM n/a
Synopsis
Creates a TextRange
object from the current
selection object. After a statement like the following:
var myRange = document.selection.createRange( )
scripts can then act on the content of the selected text.
Returned Value
TextRange
object.
Parameters
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.