How to get a javascript variable from another page?

0

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.

    
asked by anonymous 19.11.2018 / 22:58

0 answers