Name

getCurrentCard — Get the URL of the current card in the browser

Usage

WMLBrowser.getCurrentCard( )

Description

Returns a relative URL pointing to the card currently displayed by the browser. This URL is relative to the URL returned by the URL.getBase( ) function.

Returns invalid if there’s no current card in the browser.

Example

WMLBrowser.getCurrentCard( )

might return "../foo.wml#card2"

Get Learning WML, and WMLScript 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.