title: Using javascript to open a popup window
body: <p>I would like to open a popup window using javascript in my c#.net app. This is the code in the body tag in my webform</p>
  
  <pre><code>&lt;script language=javascript&gt;
      function openWindow(strEmail)
      {        
      window.open('CheckEmail.aspx?email=' + strEmail + , 'Check Email','left=100,top=100,toolbar=no,scrollbars=yes,width=680,height=350');
      return false;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>this is my code in the Page_Load section</p>
  
  <pre><code>this.btnCheck.Attributes.Add("onclick", "return openWindow(" + txtEmail.Text + ");");
  </code></pre>
  
  <p>right now I'm trying to pass the string from my textbox "txtEmail" so in my popup window i can get the request.querystring but Im a little unsure of how the syntax is.</p>