title: Mute and Unmute background sound
body: <p>I am playing alert sound in the monitoring page of my site based on some condition . 
  For playing the alert am using ::</p>
  
  <pre><code>$('body').append('&lt;embed src="'+alerts+'" id="beapImg" autostart="true" hidden="true" loop="true"&gt;');
  </code></pre>
  
  <p>Now i want to include a button which should mute the alert sound . I have explored a little on the below :</p>
  
  <p><a href="https://stackoverflow.com/questions/6848973/custom-mute-button-for-audio-embedding">Custom Mute Button for Audio Embedding?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6376450/how-to-mute-an-html5-video-player">How to mute an html5 video player</a></p>
  
  <p>I also tried to remove the attribute : "<strong>autostart</strong> " of <strong></strong> tag :</p>
  
  <pre><code>if($("#mute").is(':checked')){
  
      $('#beapImg').attr("autostart",false);
  }else{
      $('#beapImg').attr("autostart",true);
  }
  </code></pre>
  
  <p>But it doesn't help me , can any one please advice me what should i do to mute and unmute the sound .<br>
  Thanks </p>