I’ve some videos integrated through WordPress as iframe.
What I’m looking for is to redirect users to the homepage as soon as the video finishes playing.
Is there any event in Javascript to catch when existing Youtube video stops?
I’ve some videos integrated through WordPress as iframe.
What I’m looking for is to redirect users to the homepage as soon as the video finishes playing.
Is there any event in Javascript to catch when existing Youtube video stops?
You must be logged in to post a comment.
Above code will work if your iframe looks as below
with
id=player
and?enablejsapi=1