View Full Version : closing a child modal window on a submit

11-07-2004, 10:58 PM
Hey guys,
So i want to close the child modal window when the users clicks on the a submit button that is also located in the same child modal window. I am currently using this line to open the modal window.

var entry_win= window
entry_win = window.showModalDialog("AddPerson.htm","Add", "dialogWidth=205px;dialogHeight=280px;resizab

I added self.close()and window.close() in the child modal window, but that just seemed to open another window and load the child modal page again.

Can anyone help?

11-08-2004, 11:39 AM
Try using a normal (type="button") button to manipulate the modal window...