+ 1
How can I pass java script object between html pages
I created a quiz page and U don't want to give users results on the same page so I want to get results from quiz page to results page using java script
7 Antworten
+ 3
If nobody will see source code just add it as variable.
Then set innerHTML of your elements (maybe whole body) to this value.
+ 1
Isn't better to just store it in variable (user probably won't look to source code
+ 1
In that case you can use Local Storage to pass data from one file to the other:
https://www.w3schools.com/html/html5_webstorage.asp
0
Khaukanani Lawrence are you creating the quiz in the Sololearn Playground, in your computer or on a Server?
0
On my computer using javascript
0
Did you create one file (.html) for the quiz and another to the result?
0
yes