Jump to content

How to get the position of highlighted text in a HTML page using Javascript


Illusion

Recommended Posts

Hi All,

 

I have a small query on,

 

I want to select a text on html page using mouse.

when i click a button , the selected text should get highlighted.

and it should return the position(start and end position) of the highlighted text

 

Kindly send out your reponses to this post at the earliest.

 

Thanks in advance.

 

Regards

Mahz

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.