Nick
Nick

Reputation: 255

How to stop 'window.showModalDialog' opening second window?

In Microsoft's documentation I can't find the answer to my question on how to disable this feature.

The setup is that I have a browser open, that invokes the window.showModalDialog. After the user enters input in the popup window and submits a new window is opened from the pop-up.

I do not want the results from the original pop-up to open a new window. The results should be submitted back to the original browser window that invokes the first pop-up.

I've accomplished this with Mozilla and IE8, but want to make my implementation backwards compatible with other Internet Explorer versions.

Upvotes: 2

Views: 1856

Answers (1)

Matthew Rapati
Matthew Rapati

Reputation: 5686

This worked for me:

<base target="_self" />

Upvotes: 2

Related Questions