How to forward a ModalDialog to a new url

Last few days I was fighting with Modal Dialog ( opened with the method showModalDialog ) to forward to a new page with out opening a new window.The usual
document.location.href = newurl;
works but opens in a new window. Then I got a simple solution. window.name = "somename"
window.open(newurl, window.name)
well this works very fine. It opens the new url in a wondow with the name “somename”. Since that is our modal dialog is “somename” destination url opens in this modal dialog.

You may also like...

1 Response

  1. Sathish says:

    Hi Thejesh,
    I am trying to open a window without addressbar,toolbar and status bar.If you are using window.open(),then the parent window must be closed without any warning in IE and Firefox browsers.Can u help me?Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.