Ver originalsetTimeout(function(){ var player=document.getElementById("myytplayer"); player.parentNode.removeChild(player);},5000);