Reload/Refresh button for page

Hi guys, had a look on here before, but couldn’t not find something that works

I would like to simply add a button on my page, so the users can refresh/reload the page.
Thanks in advance.

1 Like

import wixLocation from ‘wix-location’;

// …

wixLocation.to(“https://www.wixproisrael.com”);

//use full url to reload

https://www.wix.com/corvid/reference/wix-location/to

hi, and thank you
but how do I apply that to a button ?

import wixLocation from'wix-location';

$w.onReady(function() {
   $w('#myButton').onClick(()=>{
   
      wixLocation.to("https://www.wixproisrael.com");
   
   })
})
1 Like

@russian-dima Tanks

Oh wow ! amazing !
Thank you so so much ! works perfectly