It is necessary that when you click on the Ajax button, the page is loaded to the full screen that would replace the current one, but on this loaded page there should be an exit button that returns to the address from which the ajax function was called.

jQuery very welcome.

I would have done it myself, but I do not understand how to describe it in a few words, what to look for in Google.

  • to "that address?" history.api want? what is the problem, skip the old content, show the new block in the script, hang something like $ ('body') on the body in the body ('on', '. backbutton', showprevcontent); - zb '

1 answer 1

Here is an example:

  $( "#result" ).load( "ajax/test.html" ); 

I think that it will still be necessary to transfer the link of the page, from which there was a redirect to itself so that you can also dynamically go back.