You are here: irt.org | FAQ | JavaScript | Text | Q1637 [ previous next ]
The the string object's substring() method:
<script language="JavaScript"><!-- var str = prompt('Feed me',''); str = str.substring(0,200); alert(str); //--></script>
©2018 Martin Webb