What makes a webpage's sound continue after the page is closed? Some websites that have sound/music keep the sound running even after the web browser is closed on iPad. Some other websites stop the sound when the page is closed. I suppose there must be some coding within the HTML to control this. How is this done?
As you may see, websites that keep the music running appear as the music app (here on iOS 6) 



It uses the HTML5 audio feature. In the website you gave (coffitivity.com). They use the JPlayer plugin for jquery to use the HTML5 audio API.