Tell me how you can save using only native js data entered into the form so that later they can all be output?

Example:

1 user has typed in: Андрей 16 Minsk

2 users entered: Anna 22 Moscow

It is necessary that this data is saved and output on another page using only js

  • Take a look at LocalStorage and IndexedDB. - Arnial
  • save where? - Vyacheslav Danshin
  • @VyacheslavDanshin local.storage - OverLoader
  • and what's the problem? - Vyacheslav Danshin
  • How in LocalStorage? Another client will have its own independent LocalStorage. Is not it. - Khangeldy Ilebaev

1 answer 1

JS runs on the client (browser) side. Data stored only on the side of the JS (LocalStorage, cookies, etc.) will be available only to the current user. If you need the data entered by different users to be visible to both the first and second users, use the database (MySQL, etc.), but you will have to use server languages ​​(PHP, etc.) to work with this.

  • JS can also be on the server (NodeJS). - user207618
  • Yes, but not in his case) - Yan Korobko
  • Not refuted - it means possible. - user207618
  • so, by the condition, like "only native js", not? - AlexandrX