O'Reilly logo

Learning WML, and WMLScript by Martin Frost

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

getReferer — Return the URL of whatever called this WMLScript unit

Usage

URL.getReferer( )

Description

(Note that the spelling is “getReferer,” not “getReferrer.”)

Returns a relative URL to the resource that called this WMLScript unit. This URL is relative to the URL returned by getBase( ).

The resource this URL points to may be either a WML file or another WMLScript unit. It is whatever performed the last URL call (for WML) or external function call (for WMLScript). Normal local function calls don’t affect the value returned.

Example

URL.getReferer( )

might return string "../deck.wml"

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required