×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

Url

Thomas Walker

Thomas Walker Last update: Aug 7, 2017

Represents the current URL.

Methods

Name Type Description
$url.host String

The host name of the current URL.

$url.path String

The path part of the current URL, or an empty string if one does not exist

$url.port int

The port number or -1 if the port is not set.

$url.protocol String

The protocol of the current URL.

$url.query String

The query part of the current URL, or null if the URL has no query part.

2x2.10
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok