DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Load A Page After Video Finishes Playing

  • submit to reddit
        You can do this using Windows Media Player, adding javascript to the page to handle the playStateChange event to detect when the video finishes playing. (Should work with any video type that Windows Media Player supports.)

<SCRIPT LANGUAGE="JScript"  FOR="Player" EVENT="playStateChange(NewState)">

// Test for the player current state, display a message for each.
switch (NewState){
    case 1: