Online Snippets Library

Reload Page in jQuery

To reload page we will use location.reload().

Example

HTML
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> </script>
<title>Reload Page in jQuery</title>
</head>
<body>
<input id="button" type="button" value="Reload Page" />
</body>
</html>
Javascript
  $(document).ready(function(){
    $("#button").click(function(){
    location.reload();
    });
 });