Pop-Up Window Javascript Helper

HOW TO:

Default.aspx
<asp:Button ID="btnSubmit" Text="Open Windows" OnClick="btnOpenWindows_Click" runat="server" />

Open a pop-up URL window with default size
Default.aspx.cs
protected void btnOpenWindows_Click(object sender, EventArgs e)
{
  ncTools.JS.WindowTOpen("https://google.com", sender, this.Page, "newin");
}

Open a pop-up URL window with page size (width & height)
Default.aspx.cs
protected void btnOpenWindows_Click(object sender, EventArgs e)
{
  ncTools.JS.WindowTOpen("https://google.com", sender, this.Page, "newin", 800, 600);
}

Add Feedback