Wix: (Javascript) Click button on one page to jump to another page and filter info

Hi,

I want a page to automatically go to another page after a few second. Would the code be similar to this?