Skip to content

How to Call sounds via a href / button and not keyboard? #25

@webdesignleader

Description

@webdesignleader

Hi there,

I understand the basics of using the sound.js functionality but I'm having trouble calling the play functions without using a keyboard reference. Is there an onClick function built into this or an easy work around?

ig.
<a onclick="music.play();"><button>Start the Music bro!</button></a>

Super excited to get going with this. There's less latency on this script than others I've seen. Very thankful to the developer.

Thank you!
Abraham

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions