title: window.open() should open the link in same tab
body: <p>I am very new to javascript, and written a program that will open a querystring as link.<br>
  I used window.open() , but the link is opening in new tab,<br>
  I want to open this link in the same tab.<br>
  The code is below. </p>
  
  <pre><code>var strquerystring;  
  if(fromvalue==""||tovalue==""){  
    alert('kindly fill all the details');
  }else{
    window.open(strquerystring);
  }
  </code></pre>