I had an issue with Window.ShowModalDialog() I.e. it no longer supports in Edge or Chrome.Then tried to use window.open() but security reasons I can't use it . It behavior is like open seperate window instead of dialog.