Hi Outcast and all clickers! You can include Java Script API files in your html page and call your wanted functions from your game using HTML5 Object! Try this method:
See this picture: SampleCodeImage.jpg.
Start of Frame
(HTML5) : Reset Parameters
(HTML5) : Call Function "keyGamesAPI_SoundControl"
(Special Conditions) : Set sound_on_off to JSStrResult$(( "HTML5" ))
Sound_on_off = "on"
Sound : Resume all sounds
Sound_on_off = "off"
Sound : Stop any sample
Remember you need include Java Script API js files into your html page for your game.