A button in its own component to refresh the entire page

I’m looking for a way to refresh the entire page using a button that could be placed anywhere in the page, maybe in an HTML component. Any ideas?

Hey @Gaudspeed

This can be done with an HTML component and some JavaScript

HTML Component Source code
<p><button id="refresh-page" class="btn btn-primary">Refresh</button></p>

JavaScript Code for that page

$('#refresh-page').click(function(){
    location.reload();
});
2 Likes

Perfect!

Thanks for the quick reply Chem!