Return to Snippet

Revision: 5117
at February 12, 2008 12:57 by Victoor


Initial Code
<head>
<script language="javascript" type="text/javascript">
	function addtext(text) {document.form.textarea.value = document.form.textarea.value+= text;}
	</script>
</head>

<body>
<form action="" method="" name="form">
   <textarea name="textarea" rows="" cols="" wrap="wrap"></textarea>
</form>
<a href="javascript:addtext('Text to add');">Add text</a>
</body>

Initial URL

                                

Initial Description

                                

Initial Title
Write Text in a TextArea

Initial Tags
javascript, forms

Initial Language
JavaScript