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.