How to properly unload/destroy a VIDEO element

后端 未结 15 2149
闹比i
闹比i 2020-12-04 07:58

I\'m working on a realtime media browsing/playback application that uses objects in the browser for playback, when available.

I\'m using a

15条回答
  •  孤城傲影
    2020-12-04 08:27

    ok, here's a simple solution which certainly works:

    var bodypage = document.getElementsByTagName('body')[0];
    var control_to_remove = document.getElementById('id_of_the_element_here');
    bodypage.removeChild(control_to_remove);
    

提交回复
热议问题