View Single Post
Old 11-12-2007, 04:02 PM  
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Form code...what am I doing wrong here?

I am trying to create a button that will highlight the text in a form so people can copy it.

There will be a lot of text in the form, otherwise I wouldn't worry about it.

This will be posted on a wordpress blog. I've tried it in both firefox and IE and it doesn't highlight the text

<form name="copyThis">
<textarea name="codeToCopy" cols="40" rows="5" readonly="readonly">
Click on the button below to highlight this text.
</textarea>
<br>
<input type="button" value="Highlight All" onclick="javascript:this.form.codeToCopy.focus();t his.form.codeToCopy.select();">

</form>

Please help thanks in advance
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote