This question already has an answer here: 這個問題在這裏已有答案: web
How do you redirect to a page from another page with JavaScript? 如何使用JavaScript從另外一個頁面重定向到頁面? spa