Link to post

Share on other sites

If someone clicks a link outside of the iframe then that is going to change the page that contains the iframe, so yeah the entire page changes. Unless the link specifically targets the iframe to load the URL, in that case then only the iframe will change (which means all event listeners inside the iframe will also be reset). If someone clicks a link inside the iframe then the default behavior is to just change the iframe, again unless they tell it to load the URL in the parent page.