Skip to content
What I Broke

Let's take a look at what I've broken today

BlogAboutArchivesLinkedIn
23 April 2014Chris Owens

Refresh a Page with JavaScript

GuidesjQueryWeb Development

Hey everyone,

Just a quick post on how to force a page refresh with JavaScript (no jQuery required):

location.reload();

Note that the reload function accepts a boolean parameter that can be used for force a server refresh. Alternatively, it just defaults to the cache.

Checkout this Stackoverflow post for more info: http://stackoverflow.com/a/5404869/522859

TagsguideJavaScriptrefreshjQuery
Previous postDetecting FileSize - jQuery
Next postDecimal Values for Bitcoin C#

Find a fix

Topics

  • AWS35
  • Azure13
  • Errors146
  • Guides154
  • Robotics45
  • Web Development258
All categories

Archives

  • 20251
  • 20241
  • 202313
  • 202215
  • 202122
  • 202022
  • 201931
  • 201854
  • 201722
  • 20164
  • 201513
  • 201434
  • 201340
  • 201251
  • 201132

Chris Owens

Notes on programming, web development, and robotics.

Connect on LinkedIn
What I Broke · Chris Owens
RSSTagsLinkedIn