How to manually dispatch hashchange event
If you want to force hashchcange event without literaly changing hash you should call:
window.dispatchEvent(new HashChangeEvent("hashchange"))
Object passed to the event handler will have this props available:
String oldURL;
String newURL;
This is an only info I found about this:
https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/HashChangeEvent.h
after receiving answer here:
http://forum.php.pl/index.php?showtopic=213470