title: Forcing Javascript Redirection
body: <p>I am trying to implement what seems to be very simple JavaScript redirection, via the following rudimentary command:</p>
  
  <pre><code>window.location.href = "http://www.somesite.com";
  </code></pre>
  
  <p>So far so good, it works.  I also can do it via the following method:</p>
  
  <pre><code>location.replace("http://www.somesite.com");
  </code></pre>
  
  <p>No problem here, it works again! The problem comes when I loose the protocol out of the string:</p>
  
  <pre><code>window.location.href = "www.somesite.com";
  </code></pre>
  
  <p>OR:</p>
  
  <pre><code>location.replace("www.somesite.com");
  </code></pre>
  
  <p>It just appends the new location to the current url:</p>
  
  <p><strong>www.currentsite.com/www.somesite.com</strong></p>
  
  <p>Of cause, that's not what I want.  Is there any way to force the redirect?</p>