title: window.location() not working, not opening page
body: <p>I have a submit button with a onClick:</p>
  
  <pre><code>&lt;div id="messageDiv"&gt;
  &lt;form&gt;
  &lt;textarea name="message" rows="10" cols="20"&gt;&lt;/textarea&gt;&lt;/textarea&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;input type="submit" value="Send" onClick="sendmail()"&gt;
  &lt;input type="reset" value="Reset" name='reset'&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>then I have my sendmail:</p>
  
  <pre><code>   function sendmail()
     {   
        window.location.href = "http://www.rainbowcode.net/index.php/profiles/mail?="+mailid;
        window.location('http://www.rainbowcode.net/index.php/profiles/mail?='+mailid);
        //return true;
     }
  </code></pre>
  
  <p><code>mailid</code> is a global variable that gets set in another JS function and it does contain the correct value. How come <code>window.location</code> is not opening my page?</p>
  
  <p>If I manually open it with a mailid it works fine..</p>