Library: Additional Window History-Stack Events (pushstate, replacestate)

Complementing the DOM Window 'popstate' event, this library adds the 'pushstate' and 'replacestate' events and corresponding event handlers ('onpushstate', 'onreplacestate').

Από την 14/06/2022. Δείτε την τελευταία έκδοση.

Αυτός ο κώδικας δεν πρέπει να εγκατασταθεί άμεσα. Είναι μια βιβλιοθήκη για άλλους κώδικες που περιλαμβάνεται μέσω της οδηγίας meta // @require https://update.greasyfork.org/scripts/425774/1060693/Library%3A%20Additional%20Window%20History-Stack%20Events%20%28pushstate%2C%20replacestate%29.js

Δημιουργός
sidneys
Έκδοση
0.1.2
Δημιουργήθηκε την
01/05/2021
Ενημερώθηκε την
14/06/2022
Μέγεθος
2 KB
Άδεια
Μη διαθέσιμη

Library

DOM Window History Stack Events (pushstate/replacestate)

  • Complement the 'popstate' event
  • Emits a pushstate event from window by Monkey-Patching History#pushState
  • Calls corresponding window#onpushstate event handler
  • Emits a replacestate event from window by Monkey-Patching HistoryreplaceState
  • Calls corresponding window#onreplacestate event handler