I\'m trying to start a youtube video when a modal is opened and not progress to the next page until it is completed.
My script below works in Chrome but produces thi
The solution was simple, although I do not know why. By removing the api from the modal it worked fine. Within the modal it wouldn't.