简体   繁体   中英

showModalDialog() opens a new browser windown on IE but not on Firefox

When I submit a form using showModalDialog() .It submit to Struts2 Action.After executing business logic it shows the response on new Browser window Instead of same window on IE.

Its working fine using window.open() .

Any lead will appreciate

In https://developer.mozilla.org/en/docs/Web/API/Window/showModalDialog says:

Deprecated: This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

Here more documentation about showModalDialog() alternative:

replacing window.showmodaldialog with window.open

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM