Edit this page

up.layer up:layer:location:changed
DOM event

This feature is experimental. It may be changed or removed in a future version.

This event is emitted after a layer's location property has changed value.

This event is also emitted when a layer without visible history has reached a new location. If you are only interested in changes the are visible in the browser's address bar, observe up:location:changed instead.

The event is also event for location changes on the root layer.

This event is not emitted when an overlay is opened. For this observe up:layer:opened instead.


event.location string

The new location URL.

event.layer up.Layer

The layer object that had its location changed.