Class createjs.Location
Defined in: location.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.Location(source)
A class that parses a URL and creates properties compatible with the ones of
the Location interface.
|
Field Attributes | Field Name and Description |
---|---|
The fragment identifier (a.k.a.
|
|
The host name of the source URL and its port number.
|
|
A file path of the source URL.
|
|
The protocol scheme of the source URL.
|
|
The search name (a.k.a.
|
|
The user name of the source URL and its password.
|
Method Attributes | Method Name and Description |
---|---|
Returns the extension.
|
|
Returns whether this location is a cross-domain one.
|
|
isLocal()
Returns whether this location is a local one.
|
|
Returns whether this location is a relative one.
|
Class Detail
createjs.Location(source)
A class that parses a URL and creates properties compatible with the ones of
the Location interface.
- Parameters:
- {string} source
Field Detail
hash
The fragment identifier (a.k.a. hash) of the source URL.
hostname
The host name of the source URL and its port number.
pathname
A file path of the source URL.
protocol
The protocol scheme of the source URL.
search
The search name (a.k.a. query) of the source URL.
user
The user name of the source URL and its password.
Method Detail
{string}
getExtension()
Returns the extension.
- Returns:
- {string}
{boolean}
isCrossDomain()
Returns whether this location is a cross-domain one.
- Returns:
- {boolean}
{boolean}
isLocal()
Returns whether this location is a local one.
- Returns:
- {boolean}
{boolean}
isRelative()
Returns whether this location is a relative one.
- Returns:
- {boolean}