How can I refresh a page with jQuery?

How can I refresh a page with jQuery?

Text Copied From stackoverflow.com
on : Wed, Mar 23, 2011 Views : 1893501

Accepted Answer

Use location.reload():

$('#something').click(
function() 
{

  location.reload();
 
});
 

The reload() function takes an optional parameter that can be set to true to force a reload from the server rather than the cache. The parameter defaults to false, so by default the page may reload from the browser's cache.

Text Copied From stackoverflow.com
on : Wed, Mar 23, 2011

Ask Question

If you want to ask question you must LogIn or SignUp
Login SignUp

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp