Using java script for an html page how do you add a name to a location storage then it is automatically added to a table on the webpage Solution Answer: There are 2 methods for storing data : - 1) localStorage , 2) sessionStorage if we want the data to be stored forever then use localStorage if not then use sessionStorage . Example : localStorage.name = \"elixir black\".