Also can you answer this question? how to get coordinates of selected text in html using javascript document.getSelecttion ()
thank
The error message "The deprecated method document.getSelection () is called. Use window.getSelection () instead." in Firefox, which means document.getSelection () is an obsolete method.