Lenso43
Remove the iFrame from your main container:
<main id="main">
</main>
Then place this javascript right above the closing </body> and enclose it in script tags:
const mainContainer = document.querySelector('main');
document.querySelector('nav').addEventListener('click', (event) => {
if (event.target.matches('a')) {
event.preventDefault();
const link = event.target,
destination = link.href;
fetch(destination).then(res => {
return res.text();
}).then(res => {
mainContainer.innerHTML = res;
});
}
});