How to redirect to link after video ends? | Sololearn: Learn to code for FREE!

+2

How to redirect to link after video ends?

2/7/2021 9:12:04 PM

COOKIE

7 Answers

New Answer

+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

+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

+3

window.location = "http://www.yourlink.com"

+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

+1

Please show your attempt then can be seen where. For all cases will be needed your attempt at all.

0

JaScript But where to place it?

0

JaScript https://code.sololearn.com/WliW9qRrOF5B/?ref=app