You cant close the opener if you use a dialog until the dialog closes
use window.open instead.....

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"sramruttun" <> wrote in message
news:...
> hi
>
> I open a pop up window using window.showModalDialog. How can I close the
> parent window after the pop up appears ?
>
>

ok Jerry
But what's the main difference between showModelessDialog and
showModalDialog ?
Both seem to be modal.

"Jerry III" <> wrote in message
news:...
> No there isn't, you can't close a window from a modal dialog it owns since
> the parent doesn't process user input until the modal dialog closes
(that's
> the difference between modal and modeless dialog). You should be able to
use
> showModelessDialog instead of window.open if you want to.
>
> Jerry
>
> "sramruttun" <> wrote in message
> news:...
> > thanks everyone for your replies
> > Daniel said:
> > window.showModalDialog(...)
> > window.close();
> > well I had tried this but it does not work..
> >
> > Saravana is suggesting an article on how to close the POP UP WINDOW
while
> I
> > want to close the parent (opener)
> >
> > Vidur said that the opener can't be closed if you use a dialog until the
> > dialog closes
> > use window.open instead.....
> >
> > I too thought that when showModalDialog is used, the parent can't be
> closed.
> > I'll need to use window.open.
> >
> > But is there still a workaround to achieve it using showModalDialog?
> >
> >
> >
> >
> >
> >
> > "sramruttun" <> wrote in message
> > news:...
> > > hi
> > >
> > > I open a pop up window using window.showModalDialog. How can I close
the
> > > parent window after the pop up appears ?
> > >
> > >
> >
> >
>
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!