7
I have a simple website with two HTML pages each with a linked Javascript code:
Front Page:
<!DOCTYPE html>
<html>
<body>
<script src="primeiraPagina.js"></script>
</body>
</html>
Second Page:
<!DOCTYPE html>
<html>
<body>
<script src="segundaPagina.js"></script>
</body>
</html>
How I can transfer data from one script file to the other, for example transfer the value of a variable from primeiraPagina.js to the secondPagina.js, without the use of frameworks.
Right around the time I mentioned it, you changed to
sessionStorage
, hahaha. Just the one I was going to suggest +1– Renan Gomes