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?