url

url.js

Members

static, constant getAbsoluteURL

Get absolute version of relative URL. Used to tell flash correct URL.

See:

static, constant getFileExtension

Returns the extension of the passed file name. It will return an empty string if passed an invalid path.

static, constant isCrossOrigin

Returns whether the url passed is a cross domain request or not.

static, constant parseUrl

Resolve and parse the elements of a URL.

Type Definitions

url:URLObject

Properties:
Name Type Description
protocol string

The protocol of the url that was parsed.

hostname string

The hostname of the url that was parsed.

port string

The port of the url that was parsed.

pathname string

The pathname of the url that was parsed.

search string

The search query of the url that was parsed.

hash string

The hash of the url that was parsed.

host string

The host of the url that was parsed.