## 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.

```java
public sealed class Location : DOMObject
```

## Properties

| Name | Description |
| --- | --- |
[getHash]
[setHash]  |
[getHost]
[setHost]  |
[getHostname]
[setHostname]  |
[getHref]
[setHref]  |
| [getOrigin](../../com.aspose.html.window/location/origin/)  |
[getPathname]
[setPathname]  |
[getPort]
[setPort]  |
[getProtocol]
[setProtocol]  |
[getSearch]
[setSearch]  |

## Methods

| Name | Description |
| --- | --- |
| [assign](../../com.aspose.html.window/location/assign/)(String) | Navigates to the given page. |
| [getPlatformType](../../com.aspose.html.dom/domobject/getplatformtype/)() | This method is used to retrieve the ECMAScript object . |
| [reload](../../com.aspose.html.window/location/reload/)() | Reloads the current page. |
| [replace](../../com.aspose.html.window/location/replace/)(String) | Removes the current page from the session history and navigates to the given page. |
| [toString](../../com.aspose.html.window/location/toString/)() |  |

### See Also

* class [DOMObject](../../com.aspose.html.dom/domobject/)
* package [com.aspose.html.window](../../com.aspose.html.window/)
* package [Aspose.HTML](../../)
