Flash video still playing on DIV that is removed using jQuery (IE bug) Flash video still playing on DIV that is removed using jQuery (IE bug) jquery jquery

Flash video still playing on DIV that is removed using jQuery (IE bug)


To remove the video and then re-add it, add the following to your function that closes the video window:

 // Remove and re-add video var clone = $("#video-holder").clone(true); $("#video-holder").remove(); $("#video").html(clone);

Where you have a surrounding "video" div, and inside a "video-holder" div that houses the embed code.


You could try removing the element when you are tabbing away from the div containing the flash like $("object").remove();


Simply do like this to refresh :

var a = document.getElementById('div_movie').innerHTML;document.getElementById('div_movie').innerHTML = a;