# mp3 finish\> redirect to page

**URL:** <https://forum.kirupa.com/t/mp3-finish-redirect-to-page/327718>\
**Category:** web dev\
**Created:** [March 22, 2012, 3:43pm UTC](https://forum.kirupa.com/t/mp3-finish-redirect-to-page/327718 "2012-03-22T15:43:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpit](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kpit](https://forum.kirupa.com/u/kpit)\
**Post date:** [March 22, 2012, 3:43pm UTC](https://forum.kirupa.com/t/mp3-finish-redirect-to-page/327718/1 "2012-03-22T15:43:40Z")

</div>

In the body, the flashplayer autoplays the mp3(Trip\_01-01-100000BC.mp3) but there is no redirection to page ‘a.html’. Any idea:q:

Thanks!:p:

```auto

<script type="text/javascript" >  
    
 function function1() {
           window.location("a.html", "_self");
   };
    </script>

<body>
<div class="playertrip">
        
<!-- Load the swf Sound Object -->
        <object width="300" height="20" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
            <param name="movie" value="singlemp3player.swf?showDownload=false" />
            <param value="transparent" name="wmode">
            <embed width="300" height="20" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="singlemp3player.swf?showDownload=false&amp;file=Trip_01-01-100000BC.mp3&amp;autoStart=true&amp;repeatPlay=no&amp; songVolume=50" wmode="transparent" 
onFinish="function1()"; >

</object> 

        </div><!--end of playertrip-->

</body>

```
