Permanently change selected text background color How can I permanently change the background color of text when I select it ? What I am trying to achieve is a highlight effect like this: Anyone can instruct me how to accomplish this with javascript? I appreciate your help a lot.