How to add a button to turn off the background music when writing a web page in HTML?
there are three methods whose principles are basically the same <; bgsound id=aa loop=-1> //This code will be called later. 1. < Input typoy = "button" value = "stop" onclick=''aa.src''" /> //aa is the name of bgsound, and aa.src'' didn't give the address of the song, which means it stopped. 2.< a href="#" onclick="aa.src=''"> Stop <; /a> 3.< a href="" onclick="aa.src=this.href; return(false)"> Stop <; /a> Be sure to pay attention to the use of quotation marks, otherwise it will not succeed. If you want to control the music playback, just add the music address after aa.src.