Results 1 - 7 of 7

Location

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

Location.assign()

The Location.assign() method causes the window to load and display the document at the URL specified.
API HTML-DOM Location Method Reference Référence

Location.reload()

The Location.reload() method reloads the resource from the current URL. Its optional unique parameter is a Boolean, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache. Besides caching behaviour forcedReload flag also impacts how some browsers handle scroll position: ordinary reload happens to try to restore scroll position after reloading page DOM, while in forced mode (when parameter is set to true) the new DOM gets loaded with scrollTop == 0.
API HTML-DOM Location Method Reference Référence

Location.replace()

The Location.replace() method replaces the current resource with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session History, meaning the user won't be able to use the back button to navigate to it.
API HTML-DOM Location Method Reference Référence

HTMLHyperlinkElementUtils.href

The HTMLHyperlinkElementUtils.href property is a USVString containing the whole URL.
API Experimental HTMLHyperlinkElementUtils Location Property Reference URL API

HTMLHyperlinkElementUtils.toString()

The HTMLHyperlinkElementUtils.toString() stringifier method returns a USVString containing the whole URL. It is a read-only version of HTMLHyperlinkElementUtils.href.
API Experimental HTMLHyperlinkElementUtils Location Method Stringifier URL API

WorkerGlobalScope.location

The location read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
API Location Property Reference Référence Web Workers WorkerGlobalScope