Hello.
Tell me how to implement the condition in the link via html. For example, there is one page example.html. It is necessary that when you open on the page there was some kind of an inscription and the edit button. When you click on this button, another page should open, not even another one, but the same one (there should be only one file), but already on this page there should be a form with an input field and a save button that saves text from the form and throws it on "first" page, where there should be a new text, which is entered into the form and the edit button. And this should be done only through the condition in the url, for example, ya.ru/example.html?edit=true.
window.location.searchproperty contains the entire GET request string, starting with a "?". For example forsite.ru/page.htmlit will be an empty string, and forsite.ru/page.html?editthis is "? edit". - Sergiks