Acara HashChange HTML DOM
Objek HashChangeEvent
Peristiwa yang terjadi saat bagian jangkar dari URL berubah, termasuk dalam Objek HashChangeEvent.
Properti dan Metode 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 |
Properti dan Metode yang Diwarisi
HashChangeEvent mewarisi semua properti dan metode dari:
Jenis Acara
Jenis acara ini milik Objek HashChangeEvent:
Event | Description |
---|---|
onhashchange | The event occurs when there has been changes to the anchor part of a URL |