10

Also can you please answer this question? how do I get co-ordinates of selected text in an html using javascript document.getSelecttion()

thanks

Community
  • 1
  • 1
priyank
  • 4,406
  • 10
  • 44
  • 52
  • Does this answer your question? [how do I get co-ordinates of selected text in an html using javascript document.getSelecttion()](https://stackoverflow.com/questions/2605133/how-do-i-get-co-ordinates-of-selected-text-in-an-html-using-javascript-document) – alias51 Mar 15 '20 at 11:56
  • You mean `document.selection` perhaps – vsync Sep 20 '20 at 11:32

1 Answers1

10

You get error message Deprecated method document.getSelection() called. Please use window.getSelection() instead." in Firefox which means document.getSelection() is a deprecated method.

vsync
  • 103,437
  • 51
  • 275
  • 359
Ravi Vanapalli
  • 9,489
  • 3
  • 30
  • 41