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"
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.