Javascript script to change selected text in textarea in IE and firefox Webmaster SearchEngine Forum

Search Forums:
Search All Member Forums as well?

search forums Reported posts Topics since your last visit Webmaster SearchEngine Forum Webmaster Coding & HTML Forum: Webmaster Coding And Programming Javascript Script To Change Selected Text In Textarea In IE And Firefox

Javascript Script To Change Selected Text In Textarea In IE And Firefox

#1 Report Post 15 Feb 2011 4:44:38 PM
Threads: 5
Posts: 8

Websitedays

Message Info Pad Profile

Javascript script to change selected text in textarea in IE and firefox

Sometimes you feel the need to change the selected text in a textarea field, and the good news is that this is possible with javascript.

Below is a cross browser ( Firefox, Internet explorer ) compatible javascript code that changes/replaces the selected text in a textarea.

Copy the javascript code in notepad, along with example textarea below and try it.

This works both in mozilla firefox (FF) and internet explorer (IE: IE6,IE7,IE8).




Example:



Quote Reply

Post a Message:

Show Your Signature?

Total: (1) Pages: (1) First | 1 | Last |
Domain:
Com Net Org In More
SEO WebDesign