How To Reload A Web Page On CodePen Full Page View By Clicking A Button
$('#quoteButton').on('click', function() { location.reload(); }); I worked on a 'Random Quote Machine' from Free Code Camp web site via NetBeans IDE 8.2 and this code works we
Solution 1:
This is an alternative to location.reload
.
The parameter of go is the page index, in this case, 0 is the current page.
For instance, go(-2)
would go 2 pages back in the history.
$("#quoteButton").on("click", function() {
history.go(0);
});
Post a Comment for "How To Reload A Web Page On CodePen Full Page View By Clicking A Button"