Question

Redirect to a new page when video ends!

  • 23 August 2021
  • 6 replies
  • 50 views

Badge +1

Hey There - I want to add and video intro and when the video ends I would like it to redirect to another page - Is this something you think I can do on Elementor pro? I really would like some help :)


6 replies

I’d like to know this as well. 

 

I’d love to have a slideshow as an intro with an exit to landing page when done. 

 

Yes, and giving a cookie option so that repeat visitors don’t need to see it every time!

Badge +1

Hi, me too!

 

This is needed of my current project.

The intro Video will auto play and when it ends will redirect to a page.

The video must be in full screen and have an skip button if visitors want to skip the video intro.

 

---Thanks.

Userlevel 2
Badge +2

Just add this code on the page with video 

 

<script>
(function ( $ ) {
$(document).ready(function(){
$('video').on('ended',function(){
$(location).prop('href', 'http://yourwebsite.com')
});
});
}( jQuery ));

</script>

 

Badge +1

Thank you very much @Coneenoc :thumbsup_tone2:

Userlevel 6
Badge +3

Just add this code on the page with video 

 

<script>
(function ( $ ) {
$(document).ready(function(){
$('video').on('ended',function(){
$(location).prop('href', 'http://yourwebsite.com')
});
});
}( jQuery ));

</script>

 

yes this should work !!

Userlevel 3
Badge +3

This should work?

I’ve tested it with a YT Video and a self hosted video. Nothing happened. :thinking:

Reply