I have a webpage with an iframe in it. The contents in the iframe has its own navigation. The issue is that when I hit my browser's back button, it only affects the contents in the iframe. It doesn't actually take you back to the previous page you were on until it's finished loading the previous stuff you were looking at in the iframe. I want the user to be able to visit this page, look at whatever they need to look at in the iframe and then when they hit their browser back button, actually go back to the previous page they were on.

I don't want to do something like a history object where I have to put a back button on there to have it load the previous page. Users are most likely going to hit the back button on the browser, mouse, or their phone.

I'm wondering if you can't do this because it's a browser thing. Is this possible?