For example, wbox is used in a page.
IFRAME A page is displayed, which is used for user login. After Successful Logon, wbox is closed. In fact, the method of implementing callback to close wbox is very simple, that is, using the IFRAME Dom operation, for example, our Code Write as follows:
// assign values to wbox, then use the close method of the wbox object to close var wbox =$ ( " # iframe " ) . wbox ( { requesttype : "iframe" , Target : " B .html " } ) ;
So we have performed user login verification in page B .html. We have verified the success and want to disable it.WboxYou can useParent. wbox. Close ()
As shown in the following code, IFRAME can be closed after we verify that closewbox is run:
FunctionClosewbox(){Parent.Wbox.Close()
}
AboutDomFor more information, seeArticle: Use JavaScript to perform IFRAME Dom operations in IE and Firefox