Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diff between document.getSelection() and window.getSelection()

Tags:

javascript

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

thanks

like image 465
priyank Avatar asked Apr 09 '10 06:04

priyank


1 Answers

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

like image 84
Ravi Vanapalli Avatar answered Oct 14 '22 13:10

Ravi Vanapalli