replacing window.showmodaldialog with window.open

后端 未结 1 861
悲哀的现实
悲哀的现实 2021-01-26 16:50

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 applicat

相关标签:
1条回答
  • 2021-01-26 17:54

    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.org/en-US/docs/DOM/window.open http://www.w3schools.com/jsref/met_win_open.asp

    0 讨论(0)
提交回复
热议问题