WMLScript replace() Function
Complete WMLScript String Library
The replace() function replaces a part of a string with a new string, and returns the result.
Syntax
|
n = String.replace(string, oldvalue, newvalue)
|
| Part |
Description |
| n |
The string returned from the function |
| string |
The original string |
| oldvalue |
The value that is going to be replaced |
| newvalue |
The value that will replace oldvalue |
Example
var a = String.replace("world","wor","bo");
var b = String.replace("world", "ld","ry");
|
Result
Complete WMLScript String Library
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|