This article mainly introduces how to determine whether a subform is closed by js, and involves javascript techniques for obtaining subforms and determining attributes. It has some reference value, for more information about how to determine whether a subform is disabled by js, see the example in this article. Share it with you for your reference. The details are as follows:
Function InsideMessageAdd () {// window. open () obtain the subform tip = OpenDialog('UploadFile.html? Tp = nbtz ', 'msg', 650,180); // start timer to determine whether the child form closes timer = window. setInterval ("IfWindowClosed ()", 500);} var timer; var tip; function IfWindowClosed () {// determine whether the subform is closed if (tip. closed = true) {alert ("close"); window. clearInterval (timer );}}
I hope this article will help you design javascript programs.