Javascript - load events for embed elements

前端 未结 5 1135
感情败类
感情败类 2020-12-19 01:37

If I do an online onload event for embed objects, that seems to work but I can\'t seem to get the load event working through addEventListener. Is this expected?

5条回答
  •  失恋的感觉
    2020-12-19 02:22

    jQuery on/bind/load won't be fired for embed elements, while ready works but not after rendered when using Chrome, if you want to listen to the stage after rendering embeded elements, you may have to use pure js to add handlers.

提交回复
热议问题