my dynamic url not change

Jun 28 2014 5:12 AM
Hi sir
 
this is my program for url change but not change
i request to please give me solution as soon as possible
my mail id  [email protected]
 
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" language="javascript">
video_count = 1;
function run1() {
video_count++;
//var videoPlayer = document.getElementById("homevideo");
var videoPlayer = document.getElementById("homevideo");
alert("test"+video_count);
if (video_count == 4)
video_count = 1;
var nextVideo = "a" + video_count + ".mp4";
alert("test1"+nextVideo);
videoPlayer.src = nextVideo;
alert("test2" + videoPlayer.src);
videoPlayer.play();
videoPlayer.load();
// videoPlayer.play();<video src="a1.mp4" controls="controls" />
};
</script>
</head>
<body>
<div style="width: 30%;">
<video id="homevideo" width="500" controls autoplay onended="run1()">
<source id="ss" src="a1.mp4" type='video/mp4'/></video>
</div>
<!--<video src="a1.mp4" controls="controls" />-->
</body>
</html>

Answers (4)