 Just like JavaScript WMLScript is used for tasks such as user input validation, generation of error message and other Dialog boxes etc.WMLScript is based on ECMAScript (European Computer Manufacturers Association Script), which is JavaScript's standardized version.Thus the syntax of WMLScript is similar to JavaScript but not fully compatible.