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 :

6 comments:

Anonymous said...

pertamaaxxx gan..

diosertai dengan contohnya gan

Zaen said...

Salam kenal, Thanks kunjungan & Komentarnye nya mas Bro.....

Mampir untuk menambah ilmu dan silaturahim aja ne.
BW.....

dah pada makan blon ne,

Unknown said...

Berkunjung balik sob

Prapatan Kertek said...

Text box sangat berguna jika yang akan kita kopi terdiri banyak huruf untuk menghindari adanya text yang tdk tercopy.
Mantab sob tutornya..!

Web mdmk said...

Dapat ilmu lagi di pagi hari setelah bersilaturahmi...terima kasih sahabat

aris9 said...

nice info sob

Post a Comment