| Business Forum | Buy, Sell & Trade | Search Engine Forum | Domains & Webhosting |
| |||||||
| REMOVE the ads below ! |
![]() |
| | LinkBack | Thread Tools |
| ||
| Here is a simple script : Which you can use to highlight everything in a text box/area so that the user can copy it or cut it easily. This is the code : Code: <form> <center> <input type="button" value=”Highlight All” onClick=”javascript:this.form.textarea.focus();this.form.textarea.select();”> <br /> <textarea name=”textarea” rows="10" cols="30" wrap="virtual"> The text/content goes over here. </textarea> </center> </form> javascript:this.form.textarea.focus();this.form.te xtarea.select(); Change every textarea word with the name of your text area and for a Google type effect, that by just clicking on the textarea everything inside gets selected, you can use this code : Code: <form> <center> <textarea name=”textarea” rows="10" cols="30" wrap="virtual" onClick=”javascript:this.form.textarea.focus();this.form.textarea.select();”> The text/content goes over here. </textarea> </center> </form> Thanks, Krates | ||
|
![]() |
| Thread Tools | |