WML (Wireless Markup Language) can call WMLScript functions declared with the extern directive and can pass parameters to or set variables in those functions. The WMLScript then takes actions based on the values of the input parameters or variables. Those actions can include setting text or image variables in the UP.Browser, advancing to the next card in the deck of the WML file that called the function, or even calling different WML files. All parameters passed between WML files and WMLScript functions are passed by value, meaning the actual value of the parameter cannot be changed. The values of variables a WMLScript external function uses can, however, be changed when set by a WML file.
The interaction from a WMLScript to a WML file is carried out using member functions of the WMLBrowser library. For complete reference information on the WMLBrowser library, refer to the WMLScript Reference.
For complete reference information on WML, refer to the Wireless Application Protocol, Wireless Markup Language Specification, Version 1.1. This document is available at:
http://www.wapforum.org/what/technical.htm