reload the page with javascript

submit to reddit

Sometimes there’s a need to reload the page with JavaScript. There’s a built in method for that! Just use:

window.location.reload()

Related posts:

  1. Read The Anchor Part of The URL … with PHP
  2. Scroll the page with JavaScript
  3. javascript: detect browser speed and load the “slow connection” site version

You are a GREAT developer? Click here to answer the weekly quiz!

This entry was posted in javascript, micro tutorial, web development and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">