c# - Restricting access to the other open browser -
i have requirement need open popup on click of button. works fine, pop window goes behind opened browser. want restrict access other opened browser window until complete transaction in newly opened window done.
in order open new window using following code.
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');");
i use modal dialog instead of popup. one, modal dialogs less intrusive other tabs might open, , two, typically include semi-transparent overlay layer covering main window restrict access requested. here example jquery ui:
Comments
Post a Comment