I
I
Igor Bukhteev2016-12-23 10:49:34
Video
Igor Bukhteev, 2016-12-23 10:49:34

Stop youtube video on modal close on css?

I did not find a suitable answer for myself.
I close the modal window, the video is playing. It is necessary that when the modal is closed, the video also stops.
html code:

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
A person from Kazakhstan, 2016-12-23
@LenovoId

js only

O
Oleg, 2016-12-23
@politon

Throw off the code on jsfiddle.net
And look here https://developer.mozilla.org/en-US/docs/Web/Guide...
You hang two events closing and pause or stop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question