window.open ("http://www.google.com","window");
window.close();
closeButton.Attributes.Add("onclick", "window.close();")
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.