search

Home  >  Q&A  >  body text

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?

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中文网2707 days ago756

reply all(1)I'll reply

  • 迷茫

    迷茫2017-07-05 10:54:21

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

    reply
    0
  • Cancelreply