How can I refresh a page with jQuery

JavaScript
$('#something').click(function() {
    location.reload();
});
Source

Also in JavaScript: