Make a textarea Highlight Automatically

This is a nice code to make your textarea contents highlight for easy copying. Make your form textarea as usual. Adjust textarea dimensions and INPUT VALUE to whatever suits your needs.

It should look like this:


Copy this code in its entirety:

<form><textarea name="textarea" cols="42" rows="12"> Put whatever in textarea. As you can see, when one clicks the button, the entire contents are instantly highlighted. Then do the CTRL+C (or CMD+C for WebTV) to copy. </textarea><br> <input type="button" value="Select" onclick="this.form.textarea.focus(); this.form.textarea.select()"></form>


Readymade HTML
Webbilicious

Contact Webmistress