最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - replacing window.showmodaldialog with window.open - Stack Overflow

programmeradmin0浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 2

It 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

发布评论

评论列表(0)

  1. 暂无评论