Why window.open do not opens a link which is given as var?
<p>I am trying to open a link which is in a div called hemsida.</p>

<pre><code> $('#hemsida').unbind('click');
 $('#hemsida').bind('click', function(){
    console.log('text: '+$(this).html());
    window.open($(this).html());
});
</code></pre>

<p>But new window opens a wrong link. For example if text in div hemsida is hotmail.com, then link for new opening window is <a href="http://localhost.com/hotmail.com" rel="nofollow">http://localhost.com/hotmail.com</a>. console.log is giving right string. Any idea why? and do i have to change my div hemsida to a href to make it work or can i open a link by getting text from it? Thanks in advance. </p>
