Firebrandbooma
Programmer
Hello everyone,
Can anyone help me with replacing multiple occurances of a string in an HTML page.
I know how to replace a string like this:
<script language="javascript">
var str1, str2;
str1 = "Scripting JavaScript";
str2 = str1.replace ("JavaScript", "Master");
document.write ("String after replacement: " + str2);
</script>
What I need to know is how to implement this into a page(s) so that it replaces occurances within the <body> tag.
Many thanks
Can anyone help me with replacing multiple occurances of a string in an HTML page.
I know how to replace a string like this:
<script language="javascript">
var str1, str2;
str1 = "Scripting JavaScript";
str2 = str1.replace ("JavaScript", "Master");
document.write ("String after replacement: " + str2);
</script>
What I need to know is how to implement this into a page(s) so that it replaces occurances within the <body> tag.
Many thanks