I have 2 buttons in the modalDialod window - close, save.
When pressing each of the buttons, a new window is opened instead of closing the window (when pressing 'close') or closing the window and refreshing the parent window (when pressing 'save').
I have added <base target="_self"> to my modalDialog so that when i press the 'close' button it works fine now, the window is closed.
But, i still have a problem with the 'Save' button. When pressing 'Save' i want to refresh the parent window (window.parent.location.href = window.parent.location.href) and close the modalDialog. What happens is that a new window is opened and the parent window is not refreshed.