Get the substring out of a string : substring « String « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
inpTxt = "Hello there";
alert(inpTxt.substring(0, 5));
//  -->
</script>
</head>
<body>

</body>
</html>








6.31.substring
6.31.1.String.substring()
6.31.2.Get the substring out of a string