For example, on a page it has a script tag like this:
<script>var X = "variável que quero pegar";</script>
How could you get this "X" variable on another page just by url and transpose it to the current page? Consider that the page can be external url of the server.