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`
(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.
(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.
(hostname this)
Property.
Is a DOMString containing the domain of the URL.
Property. Is a DOMString containing the domain of the URL.
(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.
(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.
(password this)
Property.
Is a DOMString containing the password specified before the domain
Property. Is a DOMString containing the password specified before the domain
(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.
(port this)
Property.
Is a DOMString containing the port number of the URL.
Property. Is a DOMString containing the port number of the URL.
(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 ':'.
(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`
(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.
(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.
(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.
(set-hostname! this val)
Property.
Is a DOMString containing the domain of the URL.
Property. Is a DOMString containing the domain of the URL.
(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.
(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.
(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
(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.
(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.
(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 ':'.
(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.
(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
(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.
(username this)
Property.
Is a DOMString containing the username specified before the domain
Property. Is a DOMString containing the username specified before the domain
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close