Mega Code Archive

 
Categories / JavaScript DHTML / Data Type
 

Use substring method to get the sub string

<html>   <head>     <title>Splitting a string into substrings</title>     <script type="text/javascript" > var a = "Bytes and bits"; var b = a.substring(10, 13); document.write(b);     </script>   </head>   <body>   </body> </html>