Replace the string using JavaScript
by
Narain_Siddharth
on
Dec 13, 2011
Category:
Javascript
|
Views:
64
|
Points:
25
|
Silver ★
|
|
|
Below JavaScript sample code shows how to replace the given string
<script type="text/javascript">
function ReplaceString() { var string1, string2; string1 = "Replace string using C#"; string2 = string1.replace("C#", "JavaScript"); alert(string2); } </script>
|
Like this code? Bookmark and Share:
|
|
|
|
No Response found!
|
|
|
|
|