HashChangeEvent Class

https://html.spec.whatwg.org/multipage/nav-history-apis.html#hashchangeevent

public sealed class HashChangeEvent : Event
Inheritance
Event HashChangeEvent

Constructors

NameDescription
HashChangeEvent(string, HashChangeEventInit?)Creates a hash change event with the given type and initialization dictionary.

HashChangeEvent(string, HashChangeEventInit?)

HtmlEvents.cs

Creates a hash change event with the given type and initialization dictionary.

public HashChangeEvent(string type, HashChangeEventInit? eventInitDict = null)

Properties

NameDescription
NewUrlGets the URL of the document after the navigation.
OldUrlGets the URL of the document before the navigation.

Gets the URL of the document after the navigation.

public string NewUrl { get; }

Gets the URL of the document before the navigation.

public string OldUrl { get; }