'substring()' Example : substring « Javascript Methods « JavaScript Reference
- JavaScript Reference
- Javascript Methods
- substring
'substring()' Example
<html>
<body>
<button onclick="var myS = new String('Sample String');
alert(myS.substring(4,7));">
substring</button>
</body>
</html>
Related examples in the same category