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

In Many application, many of popups are implemented using window.showmodaldialog which restricts user t

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745161682a4614418.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信