Pages

Thursday, August 25, 2011

How To Make Text Box Copy All

In this good time I'll try to share about Text Box Select or Copy All. This can give the user a button to click Select All the text in that box, so then the user can paste it and save it in they folder or other.

The following script can be used :

<div><form name="copy"><div align="center"><input onclick="javascript:this.form.txt.focus();this.form.txt.select();" type="button" value="Copy All"> </div><div align="center"></div><p align="center"><textarea style="WIDTH: 300px; HEIGHT: 144px" name="txt" rows="100" wrap="VIRTUAL" cols="55">
Write the text or link in here
</textarea></p></div></form>

For example :