title: How are variables injected into JavaScript in HTML?
body: <p>I realised that I don't know how variables are injected into JavaScript in HTML.
  I would like to test overriding a clickTag variable which is simply a var in the main body of a JavaScript ( a default value ), but to override it with the injected variable.</p>
  
  <p>Something like this ></p>
  
  <pre><code>somewhere.com/index.html?{"clickTag":"http://www.something.com"}
  </code></pre>
  
  <p>What's the best way to do that ? 
  Pretty basic, but I've been used to having the DoubleClick Enabler handling that for me and I have not thought about how the data actually gets in, and how I could test it.</p>
  
  <p>( for a basic php file, passing variables the simplest way, it would be <b>work.php?play=good&amp;balance=true</b> etc but I'm not finding a question here for what I have asked ) </p>
  
  <p>Please also correct my terminology if it is bad or misleading. Thanks. </p>