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 web.Document.location
web.Window.location
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 `web.Document.location` `web.Window.location` 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`
(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 web.assign()
is that after using replace() the current page will not be saved
session web.History
, meaning the user won't be able to use
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 `web.assign()` is that after using replace() the current page will not be saved session `web.History`, meaning the user won't be able to use back button to navigate to it. `object.replace(url);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Location/replace`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close