
public class JsLocation extends JsElementalMixinBase implements Location
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsLocation() |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(String url)
Load the document at the provided URL.
|
JsIndexable |
getAncestorOrigins() |
String |
getHash()
the part of the URL that follows the # symbol, including the # symbol.
You can listen for the hashchange event to get notified of changes to the hash in supporting browsers. |
String |
getHost()
the host name and port number.
|
String |
getHostname()
the host name (without the port number or square brackets).
|
String |
getHref()
the entire URL.
|
String |
getOrigin() |
String |
getPathname()
the path (relative to the host).
|
String |
getPort()
the port number of the URL.
|
String |
getProtocol()
the protocol of the URL.
|
String |
getSearch()
the part of the URL that follows the ? symbol, including the ? symbol.
|
void |
reload()
Reload the document from the current URL.
|
void |
replace(String url)
Replace the current document with the one at the provided URL.
|
void |
setHash(String param_hash) |
void |
setHost(String param_host) |
void |
setHostname(String param_hostname) |
void |
setHref(String param_href) |
void |
setPathname(String param_pathname) |
void |
setPort(String param_port) |
void |
setProtocol(String param_protocol) |
void |
setSearch(String param_search) |
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringintAt, lengthnumberAtpublic final JsIndexable getAncestorOrigins()
getAncestorOrigins in interface Locationpublic final String getHash()
Locationpublic final String getHost()
Locationpublic final String getHostname()
LocationgetHostname in interface Locationpublic final void setHostname(String param_hostname)
setHostname in interface Locationpublic final String getPathname()
LocationgetPathname in interface Locationpublic final void setPathname(String param_pathname)
setPathname in interface Locationpublic final String getPort()
Locationpublic final String getProtocol()
LocationgetProtocol in interface Locationpublic final void setProtocol(String param_protocol)
setProtocol in interface Locationpublic final String getSearch()
Locationpublic final void setSearch(String param_search)
public final void assign(String url)
Locationpublic final void reload()
Locationforceget 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.public final void replace(String url)
Locationassign() 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.Copyright © 2016. All rights reserved.