Reading content from site in background using javascript
<p>Have been looking around for some time now and didn't seem to find a solution that worked for me. 
I'm newbie regarding javascript (only done basic JAVA) but that haven't kept me from trying >D</p>

<p>I have to check whether a site exist before opening it. This is an example of a site not working:</p>

<p><a href="http://stackoverflow.com.ep.fjernadgang.kb.dk/questions/1591401/javascript-jquery-check-broken-links" rel="nofollow">Site not working</a></p>

<p>I tried <a href="http://stackoverflow.com/questions/1591401/javascript-jquery-check-broken-links">this</a> answer, but couldn't make it work. I notice that the tab in chrome does not have a header name like <code>404</code> or <code>404 Error</code>. So was thinking if I could read other info from the site. Can I read the</p>

<pre><code>         &lt;h1&gt;404 Not found&lt;/h1&gt;
</code></pre>

<p>from the web site in the background and if it does not equal this string then direct the user to the site?</p>
