Redirect to another page after a certain amount of time

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’:wink: , combine all shown code-parts together and your code is done.:v:

Thank you so much :grinning: