Transfer HTML via javascript files

Asked

Viewed 34 times

0

To making an order system, where the user clicks on the link to fall on a page that will select the items going pro request.

I need some way to identify what the user selected in these checkbox and pass to the page that makes the request... have to save html in type a sessionStorage, or something of the type and then recover in the other page?

Thank you in advance

  • 2

    In fact the correct thing would be to use a <form> and in this form have fields to be sent to the page as action form. And on this page you can rescue the fields sent through get or post

  • but there is also localStorage: https://developer.mozilla.org/en-US/docs/Web/API/Window/Window.localStorage

  • Already gave me an idea of what to do, thanks

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.