Problems with "Back Button" in browser

Asked

Viewed 45 times

0

You guys, it’s okay?

I need a lot of help, actually I don’t even know if that’s possible. The thing is, I created a page that has an iframe, so far so good, the problem is when I click the back button of the browser, instead of it returning to the previous page, it stays on the same page. When I insert the mouse pointer over the back button and keep pressed, it displays the iframe address (url). Being quite objective, what I need is, when the user access the page with iframe and click back, he respects and return the previous page, below a scenario.

<div class="iframe desktop-iframe"><iframe align="top" allowtransparency="true" application="true" frameborder="0" height="360px" hspace="0" marginheight="0" marginwidth="0" name="content" scrolling="no" src="url-do-iframe-que-e-exibida" vspace="0" width="100%"></iframe></div>

<div "conteudo">
<p> texto </p>
</div>

Like, I have my index.html that has a link to the page with iframe, when arriving at this page with iframe and clicking the back button, should return to index.html but it remains on the same page :(

Can you help me with that?

Thank you guys

  • It turns out that when you open the browser and access your index.html there’s nothing in your history to go back to, the browser doesn’t interact with the iframes in the same way it interacts with the "normal page".

  • Vinicius, but there are 2 different pages, iframe is in a subhome, like I have index.html and when I click on a link it points to a page different from index.html itself, that is, when I access the page of iframe, it should return to index.html

  • You really should come back. Do a test: remove the iframe from the page and see if it goes back to index.html.

  • When you say back button, you are referring to the back button of the browser, or is there actually a back button inside the iframe?

  • It would be the back button ( Back button with the left arrow) of Chrome itself. If I remove the iframe, it comes back in a good way.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.