A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent below:

HashChangeEvent: HashChangeEvent() constructor - Web APIs

HashChangeEvent: HashChangeEvent() constructor

Baseline Widely available

The HashChangeEvent() constructor creates a new HashChangeEvent object, that is used by the hashchange event fired at the window object when the fragment of the URL changes.

Note: A web developer doesn't typically need to call this constructor, as the browser creates these objects itself when firing hashchange events.

Syntax
new HashChangeEvent(type, options)
Parameters
type

A string with the name of the event. It is case-sensitive and browsers set it to hashchange.

options Optional

An object that, in addition to the properties defined in Event(), has the following properties:

oldURL Optional

A string containing the old URL. Its default value is the empty string ("").

newURL Optional

A string containing the new URL. Its default value is the empty string ("").

Return value

A new HashChangeEvent object.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4