As you can read here, Window.showModalDialog () is deprecated and Chrome doesn’t support it anymore from version 37 and has been completely removed from version 43. Use Bootstrap Modal instead or, if too expensive to change, try this library, that is a window.showModalDialog polyfill Share
Can a window.showmodaldialog be replaced with window.open?
But if there are restrictions, the window.showModalDialog method can replace the window with the .open method. To actually implement the functionality to get the return value, the normal JavaScript execution from the dialog needs to be split into two separate phases. Depends on the stage – run JavaScript until the main dialog opens.
How to replace window.showmodaldialog in Firefox and chrome?
As per the actual description, as far as I remember, Chrome and Firefox don’t currently support moddialog, so I suggest you use the window.open Or() jQuery UI chat to replace them. Of course, here are some of those methods, please do a search: https://www.codeproject.com/Tips/1160313/Script-for-Popup-in-Chrome-Replacement-of-window.
Is the window.showmodaldialog function deprecated in chrome?
Introduction. window.Feature showmodaldialog is generally deprecated and removed from your current web standards. Although some Internet Explorer browsers may still support it, it is being phased out. Far from using it in old projects, use it in new ones. The use of web pages or applications may be interrupted at any time. When we have window.showModelDialog to run in Chrome like a script.
How to use window.showmodaldialog in Google Chrome?
To be frank, to use the showModalDialog method, call it with a URL. This opening will open a modal chat with Google loaded into it. By itself, this is not very useful. Usually, when you show up in a modal dialog, you want to help get information from home.
Why is window.showmodaldialog not modal in chrome?
More importantly, the window displayed by Chrome is modeless (see Chromium bug #16045), meaning that a given user can interact with the original window before a modal dialog showing the entire target appears.
How can I make window.showmodaldialog work in Chrome 37?
It detects when the phone does not support showModalDialog and attaches a custom method that uses a period. open, parses the spec dialog (height, hardness, scroll, etc.), focuses on the opener, and puts the focus back on the pickup again. window (if focus is lost). Also, the application uses the URL as the window name, so it doesn’t open a new tab each time.

Vijay is a tech writer with years of experience in the Windows world. He’s seen it all – from simple problems to catastrophic system failures. He loves nothing more than helping people fix their PCs, and he’s always happy to share his wisdom with anyone who needs it.
When Vijay isn’t fixing Windows problems, he likes to spend time with his wife and two young children. He also enjoys reading, playing cricket, and watching Bollywood movies.