In Many application, many of popups are implemented using window.showmodaldialog which restricts user to finish work on popup before changing focus to any other aprt of application. I want to change the implementation from modal dialog (window.showmodaldialog) to independent window (window.open). could you please help me with steps which has to be followed ?
In Many application, many of popups are implemented using window.showmodaldialog which restricts user to finish work on popup before changing focus to any other aprt of application. I want to change the implementation from modal dialog (window.showmodaldialog) to independent window (window.open). could you please help me with steps which has to be followed ?
Share Improve this question asked Mar 25, 2013 at 18:45 PankajPankaj 3,68417 gold badges52 silver badges89 bronze badges1 Answer
Reset to default 2It is quite simple window.open([URL], 'width=[some number],height=[some number]');
.
In this if you have any return values with window.showmodaldialog
which you are using in the opener window, you have to handle them with window.opener
.
Have a look at https://developer.mozilla/en-US/docs/DOM/window.open http://www.w3schools./jsref/met_win_open.asp