Hey so I am really new at this and trying to figure out basic local storage. I want to store what was inputted on one page and display it on the next
The first issue I have is how to read the text (which should be a number) in the input. The name of the component I want read has been changed to age.
Should it be something along these lines?
To save the object (I don't know if this is addressing the text in the box named input or not) The name of the app page is name and the input name is age
Something like this?
To Store Object
result = document.name.age.value
var input = localStorage.setItem("nickname", result).;
To retrieve Object
localStorage.getItem('nickname');
document.result.age.value = ('nickname')
Just to be clear what Im trying to do,
1) Access number input in the component named "age" on page named "name"
2) store that number to local storage
3) on the page named "result" retrieve the local stored number
4) have number displayed in label named age.
I know that this is not correct but I have never done this before, currently looking into learning techniques but any assistance would be appreciated.