Hi,
To have a Modal Dialog (that remains until user clicks OK)
in my HTML page, I use JavaScript method "window.focus()"
on the event of its "onblur". This works fine.
But when the Child Window is open, clicking on the SUBMIT Button of the Parent Window really messes up things badly.
It submits the Form of Parent Window - even when the Modal Child Window is open. I WANT TO STOP THIS.
From my Parent Window, how can I know whether a Child Window is open or not? If I know this, then I wont allow the Form in Parent Window to submit. Can I do that? Or is there any better way of doing this?
Please Help.
Thanks in advance.
Regards,
Senthil.
To have a Modal Dialog (that remains until user clicks OK)
in my HTML page, I use JavaScript method "window.focus()"
on the event of its "onblur". This works fine.
But when the Child Window is open, clicking on the SUBMIT Button of the Parent Window really messes up things badly.
It submits the Form of Parent Window - even when the Modal Child Window is open. I WANT TO STOP THIS.
From my Parent Window, how can I know whether a Child Window is open or not? If I know this, then I wont allow the Form in Parent Window to submit. Can I do that? Or is there any better way of doing this?
Please Help.
Thanks in advance.
Regards,
Senthil.