title: Using jQuery's .load function to load an element from the previous page in a JS variable
body: <p>I want to use jQuery's <code>.load</code> function to load an element from the previous page into a JavaScript variable.</p>
  
  <p>So instead of   </p>
  
  <pre><code>var x = document.referrer; 
  $('.title').load(x +" #name");
  </code></pre>
  
  <p>I want it to be:  </p>
  
  <pre><code>var x = document.referrer; 
  $('var y').load(x +" #name");
  </code></pre>
  
  <p>so I can work with the variable.</p>
  
  <p>Do you have any suggestions how to manage it?</p>