@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Location")
public class Location
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
hash
The hash property of the Location interface returns a USVString containing a '#' followed by the fragment identifier of the URL.
|
java.lang.String |
host
The host property of the Location interface is a USVString containing the host, that is the hostname, and then, if the port of the URL is nonempty, a ':', and the port of the URL.
|
java.lang.String |
hostname
The hostname property of the Location interface is a USVString containing the domain of the URL.
|
java.lang.String |
href
The href property of the Location interface is a stringifier that returns a USVString containing the whole URL, and allows the href to be updated.
|
java.lang.String |
pathname
The pathname property of the Location interface is a USVString containing an initial '/' followed by the path of the URL (or the empty string if there is no path).
|
java.lang.String |
port
The port property of the Location interface is a USVString containing the port number of the URL.
|
java.lang.String |
protocol
The protocol property of the Location interface is a USVString representing the protocol scheme of the URL, including the final ':'.
|
java.lang.String |
search
The search property of the Location interface is a search string, also called a query string; that is, a USVString containing a '?' followed by the parameters of the URL.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Location() |
| Modifier and Type | Method and Description |
|---|---|
DOMStringList |
ancestorOrigins()
The ancestorOrigins read-only property of the Location interface is a static DOMStringList containing, in reverse order, the origins of all ancestor browsing contexts of the document associated with the given Location object.
|
void |
assign(java.lang.String url)
The Location.assign() method causes the window to load and display the document at the URL specified.
|
java.lang.String |
origin()
The origin read-only property of the Location interface is a USVString containing the Unicode serialization of the origin of the represented URL
|
void |
reload()
The Location.reload() method reloads the current URL, like the Refresh button.
|
void |
replace(java.lang.String url)
The replace() method of the Location interface replaces the current resource with the one at the provided URL.
|
@Nonnull public java.lang.String hash
@Nonnull public java.lang.String host
@Nonnull public java.lang.String hostname
@Nonnull public java.lang.String href
@Nonnull public java.lang.String pathname
@Nonnull public java.lang.String port
@Nonnull public java.lang.String protocol
@Nonnull public java.lang.String search
@JsProperty(name="ancestorOrigins") @Nonnull public DOMStringList ancestorOrigins()
@JsProperty(name="origin") @Nonnull public java.lang.String origin()
public void assign(@Nonnull
java.lang.String url)
public void reload()
public void replace(@Nonnull
java.lang.String url)