I have an issue that I want to High lite a specific text according to its X And Y position in browser. for Example
Hi, This is your Invoice No 1234567890
This Text is under
tag. If i want to High lite dynamically a specific X and Y position of then how it is possible using pure javascript.Please note that need only in Javascript not in Jquery. I am not using any-kind of jquery.i f you have any code or idea to do this then i am really appreciated.
Thank in Advance
KP Singh Chundawat
Thank in Advance
KP Singh Chundawat
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 16, 2014, 2:40 AM EST
Hi KP Singh Chundawat,
Go through following links it might help you.
https://developer.mozilla.org/en-US/docs/Web/API/document.elementFromPoint
http://stackoverflow.com/questions/6846230/coordinates-of-selected-text-in-browser-page
K P Singh ChundawatRank #1,527 · 1K reputationPosted Dec 16, 2014, 2:58 AM EST