Пример 1.
$.ajax({ type: "POST",
url: "/Default/MyProjects",
data: { 'QuerySeperated': querySeperated },
success: function (response) {
window.location.href = response.Url;
},
error: function () {
}
});
Пример 2.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#ref_butn").click(function(){
location.reload();
});
$("#ref_in_five").click(function(){setTimeout(function() {
location.reload()
},5000);
});
});
</script>
</head>
<body>
<button id="ref_butn">Refresh the page now!</button>
<button id="ref_in_five"> Wait 5 seconds, then refresh!</button>
</body>
</html>