GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Form code...what am I doing wrong here? (https://gfy.com/showthread.php?t=784101)

eroswebmaster 11-12-2007 04:02 PM

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

TDF 11-12-2007 04:04 PM

your code snubbed you

eroswebmaster 11-12-2007 04:04 PM

Quote:

Originally Posted by TDF (Post 13364360)
your code snubbed you

Et tu brute

StuartD 11-12-2007 04:05 PM

this.form doesn't exist.

try

document.copyThis.codeToCopy.select();

TDF 11-12-2007 04:06 PM

Quote:

Originally Posted by eroswebmaster (Post 13364364)
Et tu brute

awww give me a hug big boy...i miss that fuzzy beard of yours

eroswebmaster 11-12-2007 04:08 PM

Quote:

Originally Posted by StuartD (Post 13364371)
this.form doesn't exist.

try

document.copyThis.codeToCopy.select();

Fixed..thx :thumbsup

V_RocKs 11-12-2007 04:52 PM

Forms these days...


All times are GMT -7. The time now is 04:41 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123