'loop' Example : Sound : Document JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Document » Sound »

 

'loop' Example



    
<html>
<body>
<bgsound id="myBackgroundSound" src="yourmusic.wav" loop="1">
<script language="JavaScript">
    function function1() {
        document.all.myBackgroundSound.loop = 2;
    }
</script>
<input type="button" value="Set the loop value to 2" onClick="function1();">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Document
» Sound