javascript - The layer pop-up window is embedded in an iframe. How can the element in the sub-page be clicked to close the layer pop-up window?
PHP中文网
PHP中文网 2017-07-05 10:52:21
0
1
766

a page js has the following code:

layer.open({
    type:2,
    area:['580px','320px'],
    content:'test.html'
})

There is a #test button in test.html. How to click this button to close the pop-up layer?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
迷茫

iframe communication/cross-domain communication. Check it on Baidu.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template