String replace : String : Data Type JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Data Type » String »

 

String replace



    
<html>
<body>
<button onclick="var myS = new String('Sample String'); 
                 alert(myS.replace(/sam/i,'Text'));">String replace</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