HOME

WMLScript Tutorial
WMLScript HOME
WMLScript Intro
WMLScript How to

WML Libraries
WML Dialogs
WML Float
WML Lang
WML String
WML URL
WML Browser

Please visit our sponsors !

WMLScript WMLBrowser Library

previous next

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.


previous next

Jump to: Top of Page or HOME or Printer Friendly 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


Validate How we converted to XHTML Validate

ASPHits
Active Server Pages Resource Web Site


Your own Web Site?

Read W3Schools
Hosting Tutorial



$15 Domain Name
Registration
Save $20 / year!



Advertise
at W3Schools

Only 0.5 CPM



SELECTED LINKS

University Online
Master Degree
Bachelor Degree


Web Software

The Future of
Web Development


Jobs and Careers

Web Security
Web Statistics
Web Standards


PARTNERS

W3Schools
TopXML
VisualBuilder
XMLPitstop
DevelopersDex
DevGuru
Programmers Heaven
The Code Project
Tek Tips Forum
ZVON.ORG
TopXML Search