user3223518
user3223518

Reputation: 19

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

Upvotes: 1

Views: 294

Answers (1)

Raspberryano
Raspberryano

Reputation: 159

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

Upvotes: 3

Related Questions