If I make a selection in a html page and I do :
var a = document.getSelection()
I get an object with four properties :
- anchorNode
- baseNode
- extentNode
- focusNode
the values of first three is the same i.e. the text that I have selected but how are they different and which one to use?