Page 1 of 1

Selecting and formatting text

Posted: Sat Jul 14, 2007 9:51 pm
by cturner
I am wondering if there is a way for JavaScript to tell if some text is selected? If so, please show me some code. Also I want the selected text to appear bold after clicking on a button. I would like someone to please show me some code for that as well. Thanks in advance.

Posted: Sat Jul 14, 2007 10:09 pm
by feyd
What has your favorite search engine told you so far?