admin管理员组文章数量:1414614
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
本文标签: javascriptreplacing windowshowmodaldialog with windowopenStack Overflow
版权声明:本文标题:javascript - replacing window.showmodaldialog with window.open - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745161682a2645468.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论