Skip to content Skip to sidebar Skip to footer

Replacing Window.showmodaldialog With Window.open

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

Solution 1:

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.openhttp://www.w3schools.com/jsref/met_win_open.asp

Post a Comment for "Replacing Window.showmodaldialog With Window.open"