+ 2

How to redirect to link after video ends?

Pls help

7th Feb 2021, 9:12 PM
Václav Hajšman
Václav Hajšman - avatar
7 odpowiedzi
+ 1
COOKIE unfortunately it is not a realistic attempt for a test here on this platform. I don't see a working video that can start and finish. This can be solved i.e. as here: https://code.sololearn.com/Ww8iA5vPlVjx/?ref=app
8th Feb 2021, 4:45 PM
JaScript
JaScript - avatar
+ 4
COOKIE Maybe you can listen to 'ended' event of the video/audio element. When the event fires, you can follow JaScript's advice for redirection 👍 https://www.w3schools.com/tags/av_event_ended.asp
8th Feb 2021, 8:28 AM
Ipang
+ 3
window.location = "http://www.yourlink.com"
7th Feb 2021, 9:31 PM
JaScript
JaScript - avatar
+ 2
COOKIE where are you wanting to redirect to after completion ? Are you wanting to stay on website but go to a different location on web page or to another webpage altogether or to another website ? Your question appears incomplete and unclear. Please use the 8 rules for getting help from the community. Your question will be reviewed by the mod-team and most likely marked for deletion. Thanks and happy coding. https://code.sololearn.com/WRY45gFZlJTr/?ref=app
7th Feb 2021, 10:59 PM
BroFar
BroFar - avatar
+ 1
Please show your attempt then can be seen where. For all cases will be needed your attempt at all.
8th Feb 2021, 8:10 AM
JaScript
JaScript - avatar
0
JaScript But where to place it?
7th Feb 2021, 9:32 PM
Václav Hajšman
Václav Hajšman - avatar
8th Feb 2021, 8:23 AM
Václav Hajšman
Václav Hajšman - avatar