Returns a copy of the information that was provided to
Support: hashchangeChrome for Android 80+Chrome 5+iOS Safari 4.0+Firefox 3.6+Safari 5+Samsung Internet 4+UC Browser for Android 12.12+Edge 12+IE 8+Opera 10.6+Opera Mini NoneAndroid Browser 2.2+
Returns the URL of the session history entry that was previously current.
Returns the URL of the session history entry that is now current.
pageshow event, returns false if the page is
newly being loaded (and the
load event will fire). Otherwise,
pagehide event, returns false if the page is
going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to
make the page unsalvageable) the page might be reused if the user navigates back to this
Things that can cause the page to be unsalvageable include:
There are no
BeforeUnloadEvent-specific initialization methods.
BeforeUnloadEvent interface is a legacy interface which allows prompting to unload to be controlled not only by canceling the
event, but by setting the
attribute to a value besides the empty string. Authors should use the
preventDefault() method, or other means of canceling
events, instead of using