createTextRange()

This method is used to create a textRange object from the source code of the current element.

syntax:

createTextRange()

This method is used with the following:

BODY
BUTTON
TEXTAREA
text