title: Passing variable through function Javascript / PHP
body: <p>i want to pass a variable through to a php on an onClick event, it doesn't seem to be passing it through to the page properly though.</p>
  
  <p>Here's my html</p>
  
  <pre><code>&lt;a href="data.php" onClick="video(We Have a Pope)" hidefocus=""&gt;
  </code></pre>
  
  <p>and the relevant javascript function</p>
  
  <pre><code>function video(result) {
    $('#information').load('data.php?result=' + result);
    document
  }
  </code></pre>
  
  <p>My php page looks like this</p>
  
  <pre><code>&lt;?php
  
  $result = $_GET['result'];
  echo $result;
  ?&gt;
  </code></pre>
  
  <p>Nothing is being outputted though :S</p>