Liking cljdoc? Tell your friends :D

web.dom.Location

The Location interface represents the location (URL) of the object is linked to. Changes done on it are reflected on the object relates to. Both the web.Document and web.Window interface such a linked Location, accessible via Document.location and respectively.

The Location interface represents the location (URL) of the object
is linked to. Changes done on it are reflected on the object
relates to. Both the `web.Document` and `web.Window` interface
such a linked Location, accessible via `Document.location` and
respectively.
raw docstring

assigncljs

(assign this url)

Method.

The Location.assign() method causes the window to load and display document at the URL specified.

location.assign(url);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Location/assign

Method.

The Location.assign() method causes the window to load and display
document at the URL specified.

`location.assign(url);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Location/assign`
sourceraw docstring

hashcljs

(hash this)

Property.

Is a DOMString containing a '#' followed by the fragment identifier the URL.

Property.

Is a DOMString containing a '#' followed by the fragment identifier
the URL.
sourceraw docstring

hostcljs

(host this)

Property.

Is a DOMString containing the host, that is the hostname, a ':', the port of the URL.

Property.

Is a DOMString containing the host, that is the hostname, a ':',
the port of the URL.
sourceraw docstring

hostnamecljs

(hostname this)

Property.

Is a DOMString containing the domain of the URL.

Property.

Is a DOMString containing the domain of the URL.
sourceraw docstring

hrefcljs

(href this)

Property.

Is a DOMString containing the entire URL. If changed, the associated navigates to the new page. It can be set from a different origin the associated document.

Property.

Is a DOMString containing the entire URL. If changed, the associated
navigates to the new page. It can be set from a different origin
the associated document.
sourceraw docstring

origincljs

(origin this)

Property.

Returns a DOMString containing the canonical form of the origin the specific location.

Property.

Returns a DOMString containing the canonical form of the origin
the specific location.
sourceraw docstring

passwordcljs

(password this)

Property.

Is a DOMString containing the password specified before the domain

Property.

Is a DOMString containing the password specified before the domain
sourceraw docstring

pathnamecljs

(pathname this)

Property.

Is a DOMString containing an initial '/' followed by the path the URL.

Property.

Is a DOMString containing an initial '/' followed by the path
the URL.
sourceraw docstring

portcljs

(port this)

Property.

Is a DOMString containing the port number of the URL.

Property.

Is a DOMString containing the port number of the URL.
sourceraw docstring

protocolcljs

(protocol this)

Property.

Is a DOMString containing the protocol scheme of the URL, including final ':'.

Property.

Is a DOMString containing the protocol scheme of the URL, including
final ':'.
sourceraw docstring

reloadcljs

(reload this forced-reload)

Method.

The Location.reload() method reloads the current URL, like the button.

location.reload(forcedReload);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Location/reload

Method.

The Location.reload() method reloads the current URL, like the
button.

`location.reload(forcedReload);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Location/reload`
sourceraw docstring

replacecljs

(replace this url)

Method.

The Location.replace() method replaces the current resource with one at the provided URL. The difference from the assign() method that after using replace() the current page will not be saved session web.dom.History, meaning the user won't be able to the back button to navigate to it.

object.replace(url);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Location/replace

Method.

The Location.replace() method replaces the current resource with
one at the provided URL. The difference from the `assign()` method
that after using replace() the current page will not be saved
session `web.dom.History`, meaning the user won't be able to
the back button to navigate to it.

`object.replace(url);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Location/replace`
sourceraw docstring

(search this)

Property.

Is a DOMString containing a '?' followed by the parameters or of the URL. Modern browsers provide URLSearchParams and URL.searchParams make it easy to parse out the parameters from the querystring.

Property.

Is a DOMString containing a '?' followed by the parameters or
of the URL. Modern browsers provide URLSearchParams and URL.searchParams
make it easy to parse out the parameters from the querystring.
sourceraw docstring

set-hash!cljs

(set-hash! this val)

Property.

Is a DOMString containing a '#' followed by the fragment identifier the URL.

Property.

Is a DOMString containing a '#' followed by the fragment identifier
the URL.
sourceraw docstring

set-host!cljs

(set-host! this val)

Property.

Is a DOMString containing the host, that is the hostname, a ':', the port of the URL.

Property.

Is a DOMString containing the host, that is the hostname, a ':',
the port of the URL.
sourceraw docstring

set-hostname!cljs

(set-hostname! this val)

Property.

Is a DOMString containing the domain of the URL.

Property.

Is a DOMString containing the domain of the URL.
sourceraw docstring

set-href!cljs

(set-href! this val)

Property.

Is a DOMString containing the entire URL. If changed, the associated navigates to the new page. It can be set from a different origin the associated document.

Property.

Is a DOMString containing the entire URL. If changed, the associated
navigates to the new page. It can be set from a different origin
the associated document.
sourceraw docstring

set-origin!cljs

(set-origin! this val)

Property.

Returns a DOMString containing the canonical form of the origin the specific location.

Property.

Returns a DOMString containing the canonical form of the origin
the specific location.
sourceraw docstring

set-password!cljs

(set-password! this val)

Property.

Is a DOMString containing the password specified before the domain

Property.

Is a DOMString containing the password specified before the domain
sourceraw docstring

set-pathname!cljs

(set-pathname! this val)

Property.

Is a DOMString containing an initial '/' followed by the path the URL.

Property.

Is a DOMString containing an initial '/' followed by the path
the URL.
sourceraw docstring

set-port!cljs

(set-port! this val)

Property.

Is a DOMString containing the port number of the URL.

Property.

Is a DOMString containing the port number of the URL.
sourceraw docstring

set-protocol!cljs

(set-protocol! this val)

Property.

Is a DOMString containing the protocol scheme of the URL, including final ':'.

Property.

Is a DOMString containing the protocol scheme of the URL, including
final ':'.
sourceraw docstring

set-search!cljs

(set-search! this val)

Property.

Is a DOMString containing a '?' followed by the parameters or of the URL. Modern browsers provide URLSearchParams and URL.searchParams make it easy to parse out the parameters from the querystring.

Property.

Is a DOMString containing a '?' followed by the parameters or
of the URL. Modern browsers provide URLSearchParams and URL.searchParams
make it easy to parse out the parameters from the querystring.
sourceraw docstring

set-username!cljs

(set-username! this val)

Property.

Is a DOMString containing the username specified before the domain

Property.

Is a DOMString containing the username specified before the domain
sourceraw docstring

to-stringcljs

(to-string this & args)

Method.

Returns a DOMString containing the whole URL. It is a synonym URLUtils.href, though it can't be used to modify the value.

Method.

Returns a DOMString containing the whole URL. It is a synonym
URLUtils.href, though it can't be used to modify the value.
sourceraw docstring

usernamecljs

(username this)

Property.

Is a DOMString containing the username specified before the domain

Property.

Is a DOMString containing the username specified before the domain
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close