Using Ajax and trying to create a popstate event handler on the actual Ajax page using the .document object:
document.addEventListener("popstate", myPopState);
Unfortunately this does not ever seem to trigger.
My intention being that after the page is reloaded the popstate event trigger will automatically disappear.
window.addEventListener("popstate", myPopState);
– Lepidopteran