Hello guys,
I am having a small problem, I want to play a small songs (preferably .wav)when a user clicks on a button. Can someone just guide me please, is there a built in function.

I've tried the

music.play();

but its not working.
Thanks in advance for you answers.

Sorry for the other time dude . Thanks a lot ... it helps me a lot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.