I want to send some data from one HTML page to another. I am sending the data through the query parameters like http://localhost/project/index.html?status=exist
. The problem with this method is that data remains in the URL. Is there any other method to send the data across HTML pages using JavaScript or jquery.
So you can store (temporarily) form data between multiple pages using HTML5 storage objects which you can even retain after reload.. It was useful, thank you, but when trying to share multiple fields with variables('value'), it does not set values given from variables to items('label') between Web pages.
why don't you store your values in HTML5 storage objects such as sessionStorage
or localStorage
, visit HTML5 Storage Doc to get more details. Using this you can store intermediate values temporarily/permanently locally and then access your values later.
To store values for a session:
sessionStorage.setItem('label', 'value') sessionStorage.getItem('label')
or more permanently:
localStorage.setItem('label', 'value') localStorage.getItem('label')
So you can store (temporarily) form data between multiple pages using HTML5 storage objects which you can even retain after reload..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With