How to refresh the page?

-3

I needed that when the person clicked a button on the previous page he would move to the next page and give me a refresh. How do I do that?

I need this refresh because otherwise I will have to do a "gambiarra" to be able to work a shopping cart on the button I am using window.location .

    
asked by anonymous 20.09.2017 / 14:02

1 answer

-2

Use onClick with window.location.reload() :

 <input type="button" value="Refresh Page" onClick="window.location.reload()">
    
20.09.2017 / 16:20