Split a string : String : Data Type JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Data Type » String »

 

Split a string



    
<html>
<body>
<script language="javascript">
function function1(){
   var myString = 'www. navioo .com';
   var myArray = myString.split(' ');
   alert(myArray.length);
}
</script>
<button onclick="function1();">String split</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Data Type
» String