Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

on page navigate event javascript

window.addEventListener('popstate', listener);

const pushUrl = (href) => {
  history.pushState({}, '', href);
  window.dispatchEvent(new Event('popstate'));
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #page #navigate #event #javascript
ADD COMMENT
Topic
Name
7+5 =