MODAL CONTENT TROUBLESHOOTING

Audio Continues to Play After I Close My Modal

If the embed code is being used in a modal window that does not clear iFrame data on modal close, the hosting site will need to have code similar to the following implemented in order to prevent audio from continuing to play after closing the modal. See example below.

// jQuery iFrame Loading and Unloading Example – Your specific tech stack may vary. Please test across various browsers and devices.

// On Modal Open
      $(“#idOfLoadingButton”).on(“click”, function () {
        iframe.src = https://www.example.com;
      });
      // On Modal Close
      $(“#idOfunloadingButton”).on(“click”, function () {
        iframe.src = “”;
      });