DOM:range.toString
From MDC
Contents |
[edit] Summary
Returns the text of the Range.
[edit] Syntax
text = range.toString();
[edit] Example
range = document.createRange();
range.selectNode(document.getElementsByTagName("div").item(0));
text = range.toString();
[edit] Notes
Alerting the contents of a Range makes an implicit toString() call, so comparing range and text through an alert dialog is ineffective