Javascript Facebook Sound notification

in this blog post we will use HTML5 Audio tag and jquery to play notification sound on website




 Full page code :
 <html>  
 <header>  
 <title>  
 Tutofree  
 </title>  
 </header>  
 <body>  
       <input type="button" value="play" id="play">  
 </body>  
 <script type="text/javascript" src="jquery-1.10.2.min.js"></script>  
 <script>  
 $(function(){  
      $('#play').click(function(){  
           var snd='<audio autoplay=true> <source src="ping.mp3"> </audio>';  
           $('body').append(snd);  
      });  
 })  
 </script>  
 </html>