<script language="javascript"> function zzwrite( ) { document.form1.textarea1.value = "fuck"; } </script> <form name="form1"> <input type="button" value="Submit" onClick="zzwrite( );"> <input type="text" name="textarea1" size="5"> </form>