Visit Mozilla.org

DOM:Selection:isCollapsed

From MDC

« Gecko DOM Reference

[edit] Summary

Returns a boolean indicating whether the selection's start and end points are at the same position.

[edit] Syntax

sel.isCollapsed

[edit] Notes

Even a collapsed selection may have a rangeCount greater than 0. sel.getRangeAt(0) may return a range that is also collapsed.