I have a simple website, with two HTML pages each with a linked JavaScript code:
First 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 can I transfer data from one script file to another, for example transferring the value of a firstPage.js variable to the second
SecondPage.js , without use of frameworks .