@DOMObjectAttribute @DOMNameAttribute(name="Location") public class Location extends Url
Location objects provide a representation of the address of the active document of their Document's browsing context, and allow the current entry of the browsing context's session history to be changed, by adding or replacing entries in the history object.
PropertyChanged
Constructor and Description |
---|
Location(Url url)
Initializes a new instance of the
Location class. |
Modifier and Type | Method and Description |
---|---|
void |
assign(String url)
Navigates to the given page.
|
void |
reload()
Reloads the current page.
|
void |
replace(String url)
Removes the current page from the session history and navigates to the given page.
|
equals, equals, equals, getHash, getHost, getHostname, getHref, getOrigin, getPassword, getPathname, getPort, getProtocol, getSearch, getSearchParams, getUsername, hashCode, setHash, setHost, setHostname, setHref, setPassword, setPathname, setPort, setProtocol, setSearch, setUsername, toJson, toString
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
@DOMNameAttribute(name="assign") public void assign(String url)
Navigates to the given page.
url
- The URL to navigate.@DOMNameAttribute(name="reload") public void reload()
Reloads the current page.
@DOMNameAttribute(name="replace") public void replace(String url)
Removes the current page from the session history and navigates to the given page.
url
- The URL to navigate.