Quantcast
Channel: Javascript - Corpocrat Magazine
Viewing all articles
Browse latest Browse all 14

how to reload/refresh a page with jquery?

$
0
0

how to reload/refresh a page with jquery?

Its very simple.

Lets say you have a button refresh all, which basically does reloading the page when you click it. Here is the code

// use location.reload() in jquery to reload a page within onclick
<input name="doRefresh" type="button" id="doRefresh" 
value="Refresh All" onClick="location.reload();">

Viewing all articles
Browse latest Browse all 14

Trending Articles