This is an example of HTML5 History and LeviRoutes

Navigate to page2, you will see the event doesn't fire. This is ok, because you are overriding the click event so you can handle it there. Now click on the navigation buttons forwards and backwards and watch the event fire.

var app = new routes();

app.get('page2.html', function() {
  alert('On page 2');
});
      
app.get('example.html', function() {
  alert('On example');
}); 
Go to page 2