Guys I’m looking to redirect to another page after a few seconds after clicking a button, I do not know how to code.
$w(‘#myButtonID’).onClick(()=>{
setTimeout(()=>{},500);
});
Then you also will need this here…
import wixLocation from ‘wix-location’;
wixLocation.to(“www.google.com”);
Put everything into onReady() (except of —> import wixLocation from ‘wix-location’
, combine all shown code-parts together and your code is done.![]()
Thank you so much ![]()