Need a javascript equivalent for java URL and URL connection class
<p>If we need to read the content of the webpage, using a java URL and URL connection class we can read the contents of the webpage by providing url. This can be done at the server side. I want to do the same at client side using javascript or jquery,..</p>

<pre><code>import java.net.*;
import java.io.*;
import java.util.Date;
class UCDemo
{
   public static void main(String args[]) throws Exception {
      int c;
      URL hp = new URL("http://www.imdb.com/name/nm0761052/");
      URLConnection hpCon = hp.openConnection();
      // my own processing for reading the text
   }
}
</code></pre>

<p>Can some one tell me javascript equivalent for the URL class,..</p>

<p>I tried the ajax calls to the urls, but it needs a proxy to read the contents of the url is there any other way,..</p>
