Location Class
Contents
[
Hide
]Location class
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.
public sealed class Location : Url
Properties
Name | Description |
---|---|
[getHash] | |
[setHash] Gets or sets a String representation for the specified URL hash segment. | |
[getHost] | |
[setHost] Gets or sets a String representation for the specified URL host. | |
[getHostname] | |
[setHostname] Gets or sets a String representation for the specified URL hostname. | |
[getHref] | |
[setHref] Gets or sets a serialized representation for the specified URL instance. | |
getOrigin Gets a String representation for the specified URL origin. | |
[getPassword] | |
[setPassword] Gets or sets a String representation for the specified URL password. | |
[getPathname] | |
[setPathname] Gets or sets a String representation for the specified URL path. | |
[getPort] | |
[setPort] Gets or sets a String representation for the specified URL port. | |
[getProtocol] | |
[setProtocol] Gets or sets a String representation for the specified URL schema. | |
[getSearch] | |
[setSearch] Gets or sets a String representation for the specified URL search segment. | |
getSearchParams Gets an associated IUrlSearchParams object. | |
[getUsername] | |
[setUsername] Gets or sets a String representation for the specified URL username. |
Methods
Name | Description |
---|---|
assign(String) | Navigates to the given page. |
equals(object) | Determines whether the specified Object, is equal to this instance. |
getHashCode() | Returns a hash code for this instance. |
getPlatformType() | This method is used to retrieve the ECMAScript object . |
reload() | Reloads the current page. |
replace(String) | Removes the current page from the session history and navigates to the given page. |
toJson() | Returns a String that represents this instance. |
toString() | Returns a String that represents this instance. |
See Also
- class Url
- package com.aspose.html.Window
- package Aspose.HTML