Closing parent window from child window
Hi All,
I am opening a child window from the main parent window while modifying/deleting a record from record view. I have a delete option in the child window which actually needs to delete all parent records, including the parent record from which the child was opened.
I am using javascript while closing both child and parent window and returning to the record view. I am using window.close & window.opener.close . But the parent window is giving an error when it is being closed as the parent record has been deleted from the delete option of the child record. No problems with the child as it closes automatically after the action.
How can I avoid the error while closing the parent record window ???
Any help would be highly appreciated !!!
|