I'm using this code to post a page node in an overlay. The page node has an iframe of a video.
<a href="/pages/video/" data-xf-click="overlay">
Everything works swell but when I close the overlay, the video still plays.
Is there any way I can get the iframe to refresh (since the video loads paused) or the video to stop when I close the overlay?
Not sure but this script snippet below helps with refreshing iframe I think.
<a href="/pages/video/" data-xf-click="overlay">
Everything works swell but when I close the overlay, the video still plays.
Is there any way I can get the iframe to refresh (since the video loads paused) or the video to stop when I close the overlay?
Not sure but this script snippet below helps with refreshing iframe I think.
Code:
function reload() {
document.getElementById('iframeid').src += '';
}