After use window.showModalDialog () to open the modal window, the time of filing the modal window always opened in a new window.
Solution:
Between the <head> pop-up window to be added:
<base target="_self"/>
It will not open the page in a new window when submitting such request.
Reproduced in: https: //www.cnblogs.com/Alenliu/p/3948751.html