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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

K P Singh ChundawatPosted Dec 16, 2014, 7:58 AM
Manish Kumar ChoudharyPosted Dec 16, 2014, 7:40 AM
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