javascript window.open failing to open in same browser window
<p>I am trying to open a web page in the same window after validating user ID.  The html/javascript code is:
    
    
    
      
      
      
         
     </p>

<pre><code> &lt;script language="javascript"&gt;
function check(form)/*function to check userid &amp; password*/
{
  if(form.loginID.value == "" &amp;&amp; form.loginPass.value == "") {
    window.open("mform.html","_self"); 
}
else {
    alert("Error Password or Username")  
      }
     }
 &lt;/script&gt; 
 &lt;/body&gt;
</code></pre>

<p>If I use _self the browser just reloads original page.  If I change it to _blank it opens a new window with the correct page loaded.  I have tried this in Safari, firefox and chrome browsers with the same results.</p>

<p>Any assistance is appreciated.</p>
