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.
(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`
(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.
(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`
(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`
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close