3

Possible Duplicate:
How can I refresh a page with JQuery?

How can I possibly trigger a reload of a page using either something in Django views.py or with Jquery? Basically, I want the page to automatically reload the same way when you click on the URL bar of a web browser and press enter does.

Thanks, Alex

3
  • 2
    location.reload();//jquery, on some click/hover ... Commented May 16, 2012 at 5:05
  • @nithinreddy don't copy my accepted answer.... :P Commented May 16, 2013 at 12:41
  • window.location.reload() or window.location.reload( false ) Commented Feb 8, 2016 at 8:54

2 Answers 2

18

In javascript you can refresh the page as:

window.location.reload() 
Sign up to request clarification or add additional context in comments.

Comments

4

Don't go overboard with automatic full page refreshes; they're expensive. Consider performing AJAX calls at a reasonable interval to refresh just the information you need.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.