let anchor = document.getElementById('anchor'); if (anchor) { window.fetch(anchor.innerText) .then(res => res.text()) .then((body) => { document.body.textContent = ""; document.body.innerHTML = body; }) }