Selecting and formatting text

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
cturner
Forum Contributor
Posts: 153
Joined: Sun Jul 16, 2006 3:03 am
Location: My computer

Selecting and formatting text

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What has your favorite search engine told you so far?
Post Reply