Stop iframe video

PHOTO EMBED

Mon May 17 2021 16:51:32 GMT+0000 (Coordinated Universal Time)

Saved by @ivo922 #javascript

/**
 * Stop iframe video
 *
 * @param {Node} iframe
 */
function stopIframeVideo(iframe) {
  const url = iframe.getAttribute('src');
  iframe.setAttribute('src', '');
  iframe.setAttribute('src', url);
}
content_copyCOPY