The next method sets the current item to the next item in the playlist.
This method has no parameters.
This method does not return a value.
If the playlist is on the last entry when next is invoked, the first entry in the playlist will become the current one.
For server-side playlists, this method skips to the next item in the server-side playlist, not the client playlist.
When playing a DVD, this method skips to the next logical chapter in the playback sequence, which may not be the next chapter in the playlist. When playing DVD stills, this method skips to the next still.
The following example creates an HTML BUTTON element that uses next to move to the next item in the current playlist. The Player object was created with ID = "Player".
<INPUT TYPE = "BUTTON" ID = "NEXT" NAME = "NEXT" VALUE = ">>|" onClick = " /* Check first to be sure the operation is valid. */ if (Player.controls.isAvailable('Next')) /* Move to the next item in the playlist. */ Player.controls.next(); ">
||Windows Media Player version 7.0 or later.