title: jQuery equivalent of $_SERVER[PHP_SELF]
body: <p>What is the jQuery equivalent of <code>$_SERVER[PHP_SELF]</code>?</p>
  
  <p>I need it so I can insert it into a jQuery function</p>
  
  <p>The jQuery is being called from inside the header</p>
  
  <p>For example I'm trying make a request. This can come from multiple domains hence the need to set it dynamically.</p>
  
  <pre><code>$(".class").load( jQuery equivalent $_SERVER[PHP_SELF] "?page=" + pageNumberID + "&amp;ipp=4" etc);
  </code></pre>