The site has a main page where all authorized users (main.php) fall. The page is loaded for a long time (due to the peculiar content) and contains links to videos that open on another page (play.php). How is it possible on the play.php page to make a link that will return the user back to main.php WITHOUT A RESET page?

Raised to the main page by a community spirit member 18 hours ago .

This question contains answers that can be both good and bad; the system offered them for verification.

  • AJAX technology to help you, rewrite the content of the page, since you want without reloading the page - Manitikyl
  • Consider opening play.php in a modal window without switching to a new page. Well, or find out because of what it takes a long time to load. If the server generates a page for a long time, then try to cache it. If the content on the page is heavy, then the question is about the width of the channel and client side caching - teran
  • one
    For good in any way. you just don’t have to leave this page, you can hide all unnecessary content javascript and upload another content via ajax into some kind of div and videos there or something else - Mike
  • but you see, if you click the button back in the browser, the page will appear! and without rebooting. I need to do it too ... - Eugene Master

1 answer 1

<input type="button" onclick="history.back();" value="Назад"/> <input type="button" onclick="history.back();" value="Назад"/> everything turned out to be much simpler. Anyway, thanks for the advice. I will try modal window in version 2.0

  • If your answer to your question is a solution, mark it as accepted. - 0xdb