Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q31 How do I include carriage returns in a textarea?

You are here: irt.org | FAQ | JavaScript | Form | 3.3 | Q31 [ previous next ]

<form name="pForm">
<textarea cols="10" name="pText" rows="4" value=""></textarea>
</form>

<script language="JavaScript"><!--
document.pForm.pText.value = 'Check\r\nthis\r\nout';
//--></script>

©2018 Martin Webb