HTML DOM HashChangeEvent
HashChangeEventオブジェクト
URLのアンカー部分が変更されたときに発生するイベントは、HashChangeEventオブジェクトに属します。
HashChangeEventのプロパティとメソッド
Property/Method | Description |
---|---|
newURL | Returns the URL of the document, after the hash has been changed |
oldURL | Returns the URL of the document, before the hash was changed |
継承されたプロパティとメソッド
HashChangeEventは、以下からすべてのプロパティとメソッドを継承します。
イベントタイプ
これらのイベントタイプは、HashChangeEventオブジェクトに属します。
Event | Description |
---|---|
onhashchange | The event occurs when there has been changes to the anchor part of a URL |