Hi all, I need to open a new window with a single click of an asp.net button. My problem is that it always takes two clicks.. if i write the open window code in the page load, then the window gets open on 1 click.. any ideas how to get around this...
Button Click Code :
btnClaim.Attributes.Add("Onclick","javascript:return OpenPopup()")
Javascript function :
function OpenPopup()
{
window.open("newWindow.aspx?", "_blank", "height=500, width=575, left=150,
top=150, " +
"location=no, menubar=no, resizable=no, " +
"scrollbars=no, titlebar=no, toolbar=no", true);
}