I am facing a requirement where I need to trigger a popup when a button is clicked. The functionality itself works fine, however, the new window ends up going behind the main browser window. I need to prevent users from accessing the other browser windows until the transaction in the new window is completed.
Here is the code snippet I am using to open the new window:
Response.Write("detailedresults=window.open('NewWindow.aspx','Send Data','left=(screen.width) ? (screen.width - 800) / 2 : 0,top=(screen.height) ? (screen.height - 700) / 2 : 0, width=1000, height=500, toolbar=no, menubar=no, titlebar=no, location=no, addressbar=no');");