In general, the task is: there are 2 open pages in the browser, both have forms, but they are not dependent on each other. How can information from a form on one page be transferred to a form on another? What specific web development technology should I use? Is it even possible?

  • localstorage there is an event for updating the stack (of course, only for normal browsers) there is still an old way to arrange a transfer with a cookie. (of course, all on the same domain)

1 answer 1

Here you need a server (apache, nginx), server code and ajax (you can without it). The scheme can be arranged like this - we fill in the form on one page, ajax sends data to the server. Ajax code on another page is interested in the server about new data and updates the form on another page.

  • I can only intervene in the code on one page, i.e. neither the frontend change nor the backend of the second page are available to me. Is there a way to embed ajax on another page without having to edit the files on the server? - Andrei Talanin
  • ctrl + c ctrl + v. Unfortunately, I do not see a more beautiful solution. - alvoro
  • Well, ok, the solution should not be beautiful, albeit ugly, but save the user from any manipulations in the browser. - Andrey Talanin
  • can a browser plugin that does the work of sharing data? - Nofate
  • > can a browser plugin that does the work of sharing data? I may well like this idea, but are there other options? And what if to go on the other hand: if there was a way to dynamically copy the form code from another page, then the form could be sent from a clone ... - Andrei Talanin