How to close all open iframe when you click on the spoilers?

0 like 0 dislike
17 views
Comrades, can anyone help/suggest how to close all the iframe ?
https://jsfiddle.net/sergeybreen/u6o6e5x7/3/
Now the following happens:
If you open a spoiler, start the video and then open another spoiler, the previous won't be interrupted(if the video is running, and will play, despite the fact that the spoiler has already snuck in this iframe). How to make the transition to another spoiler, in the previous, all fully cleaned and closed the last iframe? In General, before every opening any spoiler first performed zakisaniya\\closing all the others?

Incorrect now and still is that when Otkrytiye the following spoilers, clicking on play in the iframe iniciouse launch video takes you to videohost link in a new tab... And the users don't have to leave your website. I think if you do close all iframe - should be the norm
by | 17 views

1 Answer

0 like 0 dislike
Just carry your iframe when closing and that's all. Well, or read the YouTube api, there should be
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 12, 2019 by Cesar1
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Jun 12, 2019 by Shimpanze
110,608 questions
257,186 answers
0 comments
33,868 users