Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function() {
- jQuery(window).on('popstate',function(event) {
- event.preventDefault();
- var eventData = event.originalEvent.state;
- if(eventData === null) {
- jQuery('#content').html('');
- }else{
- console.log(eventData);
- }
- });
- });
Add Comment
Please, Sign In to add comment