1
I intend to click on a button to make me Reload page.
Notice that the <a>
in a file of navbar
is external to the original file. I call navbar
through the php and that button is on navbar
.
Below is the code I tried to implement this:
function Refresh(){
window.location.reload();
}
<html>
<body>
<a onclick="Refresh"><i class="fa fa-fw fa-refresh"></i> <p>refresh</p></a>
</body>
</html>
This method works in any browser, Javascript enabled or not, Anyway, 100% guaranteed.
<a href='URL_da_Propria_Pagina'><i class="fa fa-fw fa-refresh"></i> <p>refresh</p></a>
– user60252
I know I did, but what I wanted was a function to have in the navigation bar so that of Reload on any page since my navigation bar is the same for all pages.
– Shider