Setting window size with Javascript Form Action
<p>I have a page where I am getting session values then calling form action through javaScript, please see the code below</p>

<pre><code>&lt;%@ Page language="c#" AutoEventWireup="false" %&gt;
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &gt; 
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;SessionRedirect&lt;/title&gt;
    &lt;meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"&gt;
    &lt;meta name="CODE_LANGUAGE" Content="C#"&gt;
    &lt;meta name=vs_defaultClientScript content="JavaScript"&gt;
    &lt;meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5"&gt;
  &lt;/head&gt;
  &lt;body MS_POSITIONING="GridLayout"&gt;    
    &lt;form method="post" name="frmRedirect" target="_blank"&gt;   
     &lt;input type="hidden" name="email" value="&lt;%=Session["Email"].ToString() %&gt;" /&gt;
     &lt;input type="hidden" name="pass" value="&lt;%= Session["PWD"].ToString() %&gt;" /&gt;
     &lt;input type="hidden" name="User" value="&lt;%= Session["User"].ToString() %&gt;" /&gt;
     &lt;/form&gt;
&lt;script type="text/javascript"&gt; 
    if(frmRedirect.User.value == "P")
        {    
     frmRedirect.action = "http://cmsstag/partnerzone/index.aspx";  
      }
    else
     frmRedirect.action = "http://cmsstag/studentportal/index.aspx";

    document.frmRedirect.submit(); 
    location.replace("index.aspx");

&lt;/script&gt;
&lt;%
      Session.Remove("registration");
            Session.Remove("User");
            Session.Remove("UserId");
            Session.Remove("UserLoggedIn");
            Session.Remove("AgentCode");
      Session.Abandon();
%&gt;  
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Now I want to open page in new window with size given by me when I use "frmRedirect.action" used in above code. </p>
