Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6588485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:03:15+00:00 2026-05-25T17:03:15+00:00

in a html page i’m looking for a way to redirect to a url

  • 0

in a html page i’m looking for a way to redirect to a url after the end of the video
I’ve tryed this code without success (redirect event at the end)

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>

<script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){

$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4v: "intro.mp4",
poster: "intro.png"
}).jPlayer("play");
},
swfPath: "js",
supplied: "m4v",
size: {
width: "950px",
height: "320px",
cssClass: "jp-video-360p"
}
,
events:{
onComplete: function() {
window.location = "http://www.cnn.com";
}
},
});
});
//]]>
</script>

this code autoplay the video, but doesn’t redirect after the playback.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:03:15+00:00Added an answer on May 25, 2026 at 5:03 pm

    Here’s the solution using ended event:

    <script type="text/javascript">
    //<![CDATA[
    $(document).ready(function(){
    
        $("#jquery_jplayer_1").jPlayer({
            ready: function () {
                $(this).jPlayer("setMedia", {
                    m4v: "intro.mp4",
                    poster: "splashvideo.png"
                }).jPlayer("play");
            },
            swfPath: "js",
            supplied: "m4v",
            size: {
                width: "950px",
                height: "320px",
                cssClass: "jp-video-360p"
            }
            ,
       ended: function() {
               window.open("http://www.yoursite.com/welcome", "_self");
    
       },
        });
    });
    //]]>
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my html page i have code something like this, where i have installed
i have this html page: Code: <html> <!-- ... -->or explicity set the background-color
I wrote my html page like this: <div> <img src=Natural1.jpg id=img1 > <audio src=sound.mp3
Many html page has an url link to the RSS feed. If you have
I have this code to decode numeric html entities to the UTF8 equivalent character.
When caching a HTML page with must-revalidate , this means that browser must check
I currently have an HTML page running a full screen canvas element. In this
If I save a html page like this one: <html> <body> <h1> Lista immagini:
HTML page // in script tag $(document).ready(function () { var url = list.ashx; $.get(url
I have this HTML page, and I want to create a jQuery method that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.