Javascript : How to refresh page with JQuery ?
Sometimes, easy thing such as refreshing a page with javascript or jquery is the hardest thing to remember. To refresh a page with JQuery, use this code fragment below :
$('#yourbuttonid').click(function() {
location.reload();
});
Options that you might to know about
location.reload(false) - Default setting and will reload the current page from the cache.
location.reload(true) - Force a reload from the server.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+14.4k Golang : On enumeration
+14k Golang : Reverse IP address for reverse DNS lookup example
+5.4k Golang : fmt.Println prints out empty data from struct
+31.5k Golang : Example for ECDSA(Elliptic Curve Digital Signature Algorithm) package functions
+11.3k Golang : Fix fmt.Scanf() on Windows will scan input twice problem
+13.6k Golang : Qt progress dialog example
+9.4k Golang : Scramble and unscramble text message by randomly replacing words
+14k Golang : convert rune to unicode hexadecimal value and back to rune character
+11.7k How to tell if a binary(executable) file or web application is built with Golang?
+6.1k Golang : Debug with Godebug
+17.3k Golang : How to tell if a file is compressed either gzip or zip ?
+6.1k nginx : force all pages to be SSL