logo

New Response

« Return to the main article

You are replying to:

  1. I have a parent form which opens a child window using showModalDialog box. when i press close button on child window, it gives error on some I.E. browsers. i have written following code on close button. it is giving __eventTarget is not a null or an object.

    function closePopup(formName, eventTarget) { if (formName != null && eventTarget != null) { var da = window.dialogArguments; var theform; theform = da.document.forms[formName]; theform.__eventTarget.value = eventTarget; theform.__eventArguments.value = "frompopup"; theform.submit(); } window.close(); }

    Basically on some browsers theform variable is giving output as undefined. i could not resolve this problem.

    If anyone knows the solution, please reply it to me

    Thanks

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: