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

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

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

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

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

× close