Home › Forums › JavaScript › Detect selected text › Re: Detect selected text
June 13, 2010 at 5:40 am
#77783
Member
Copy and paste the code below into a .html file open it. You will see that the block will go orange when you hover over it. This is because the .selected class has a background colour of orange.
Code:
This is a box