jQuery refresh page

09.Feb.2011

Sometimes you really want to refresh page when using jQuery events. So – in order to refresh page on event (in this case click) use following snippet and reload current page.

1
2
3
jQuery('#refresh-link').click(function() {
        location.reload();
});