Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Detect selected text Re: Detect selected text

#77783
jamygolden
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