<!doctype html> <html> <head> <title>GopherJS DOM example - Toggle (Play/Pause) Sound on Click Event</title> </head> <body> <button id="foo" type="button">Click Me to Play Sound</button> <audio id="audio"> <source src="Wat_Metta_Buddha_Qualities.mp3" type="audio/mpeg"> Your browser does not support this audio format. </audio> <script src="demo.js"></script> </body> </html>