HashChangeEvent Class
https://html.spec.whatwg.org/multipage/nav-history-apis.html#hashchangeevent
public sealed class HashChangeEvent : Event- Inheritance
EventHashChangeEvent
Constructors
| Name | Description |
|---|---|
| HashChangeEvent(string, HashChangeEventInit?) | Creates a hash change event with the given type and initialization dictionary. |
HashChangeEvent(string, HashChangeEventInit?)
HtmlEvents.csCreates a hash change event with the given type and initialization dictionary.
public HashChangeEvent(string type, HashChangeEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| NewUrl | Gets the URL of the document after the navigation. |
| OldUrl | Gets the URL of the document before the navigation. |
NewUrl
HtmlEvents.csGets the URL of the document after the navigation.
public string NewUrl { get; }OldUrl
HtmlEvents.csGets the URL of the document before the navigation.
public string OldUrl { get; }