blog pic

Let's Make Some Noise

12/1/2017 12:00:00 AM


You may find that you want to add some sound to a website. Why? Various reasons. In my case, I needed it for a game.

First, add an id to the button in the html.

<button id="bark-bark">Bark!</button>

Next create some javascript:
javascript code

And that's all you need to do. Click the button and listen to the sound. Bark! Bark!

About the Picture

The two dogs in the picture are both rescues. They do enjoy play time and can get quite loud during it!


"