How to Highlight Text When Clicked. Part of the series: Working on a Mac. Highlighting text when clicked requires a little bit of HTML and a little bit of JavaScript. Highlight text when clicked with help from a Web designer and programmer in this free video clip.