The modern web has you covered with the Page Visibility API. document.addEventListener("visibilitychange", () => { const state = document.
確定! 回上一頁