Please visit our sponsors !
WMLScript WMLBrowser Library
The WMLBrowser library contains functions that can be used to access browser
variables.
WMLBrowser Library Functions
Information stored by the browser is often called the browser context. The
browser context can contain variables set by a program and variables set by the
browser, like the current URL, and the card history stack.
The WML Browser library contains functions to set and access the browser
context:
Function |
Description |
getCurrentCard() |
Returns the (relative) URL of the current card |
getVar() |
Returns the value of a variable |
go() |
Goes to a new card, specified by the new URL,
and returns an empty string
|
newContext() |
Clears all variables, and returns an
empty string |
prev() |
The browser goes back to the previous card, and
returns an empty string |
refresh() |
Refreshes the current card, and returns an empty string |
setvar() |
Sets the value of a variable, and
returns true if the new value was implemented successfully, and false if
not |
NOTE: The WML specification states that calls to library functions
that are not supported by the browser should return invalid. Because of
this, all the above functions should be tested against their return value, and
proper action should be taken in case a function returns invalid.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|