This is my first HTML page:
If you are not using html5, you have these ways to pass the value from one html to another - QueryString/GET/Cookies.
HTML5 provides two objects localStorage and sessionStorage to save the client data. Both allow user to store the data on local machine. Provides two methods - getItem('Key') and setItem('Key','Value') or we can just store the data in array of localStorage or sesionStorage;
// Store
localStorage.setItem("lastname", "abc");
// Retrieve
document.getElementById("result").innerHTML = localStorage.getItem("lastname");
The sessionStorage object is similar to the localStorage object except it stores the data for only one session. The data is deleted when user closes the window.
to remove any item from session:
localStorage.removeItem("lastname");
to store as an array:
for (item in items) {
localStorage[item] = AnyArray[item];
}