I literally looked up all topics on how to pass a variable from a JS file, linked to a HTML page, into another HTML file So, i have a HTML, page1, in which products are selected and added to a "shopping cart" in the same page The js file linked to page1 gets all products price, names and images, and add them to the cart section in the HTML, thus creaing a matrix in which there are arrays of prices, titles of the product and so on Summing all up, I have this last matrix, as a variable, that i need to put into my new HTML page, "page2.html"
The problem is that when i press the button "Go to checkout" I dont know how to open the second HTML page, from the first js file, after it got all the products infos, and how to pass al the infos into the new HTML file, opened on click
hope I got clear enought with all I wrote, and I hope you can help me anytime soon thanks