how to make the parent window blank during the onload?
<p>When i type the URL in the browser the login.jsp gets evaluated and a child window(with diasabled toolbar ) is opened and the parent window gets closed.</p>

<p>wat i want is when i type the url in the browser and click go i dont want to display any information of login.jsp page to be dispalyed in the parent window.. i want only in the child window......</p>

<p>i dont have any idea of using another jsp...</p>

<p>can someone help me wit the code or ideas.... </p>

<p>the code i hav written is pasted below.</p>

<p><strong>Login.js file</strong></p>

<pre><code>function focus(){
    window.onload=ifocus();           
    document.LoginFB.strUserid.value="";
    document.LoginFB.strPassword.value="";
    document.LoginFB.strUserid.focus();
}

function ifocus(){
    if(!window.opener){
        window.opener='top';
        window.close();
        window.open('http://localhost:8080/jsp/Login.jsp','tr','width=1250,height=700,toolbar=no,location=no,directories=no,status=no,menubar=no,hbar=yes,scrollbars=yes,copyhistory=no,scrolling=yes, resizable=yes');
    }else{
    return;
}
</code></pre>

<p><strong>Login.jsp</strong></p>

<pre><code>&lt;body onload=javascript:focus()&gt;
</code></pre>
