0

Apologies for my ignorance, I'm new to JavaScript and web development in general.

I have a page (A) that links to another page (B).

Inside page (B) I have a bit of code with some variables defined in JS like this:

<html>
  <body>

    <script type="text/javascript">

      var big_string = "I am a large string";

    </script>

  </body>
</html>

I'm trying to write a greasemonkey script that will get the value of big_string and append it to a var in page (A). I feel like I ought to be able to get big_string from inside (A) since I have a link to (B) but I can't find any examples of how to do this. Is what I'm trying to do possible or am I going about this in the completely wrong way?

jwatts1980
  • 7,254
  • 2
  • 28
  • 44

0 Answers0