The WMLBrowser Library
As you’ve seen from the examples in this chapter, the WMLBrowser Library contains several functions used to command how WML and WMLScript files work together when processed by the browser.
Because not all WAP devices use the same browsers, sometimes a particular browser might not be capable of interpreting these functions. In this case, the WMLScript is ignored. Table 12.6 displays the functions of the WMLBrowser Library.
Function | Syntax | Argument | Description | Example |
---|---|---|---|---|
getCurrentCard |
WMLBrowser. getCurrentCard() | No argument is specified. | Retrieves the URL of the current card in the browser. |
WMLBrowser. getCurrentCard(); |
getVar |
WMLBrowser.getVar
(string) ... |
Get WAP 2.0 Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.