How play audio in Javascript before calling Alert using two functions in an onclick event?
We create buttons dynamically in Javascript or code-behind for all buttons in a web application… thousands of them throughout the application. Part of that build is the onclick=somefunction() part. I’d like to play an audio sound (click) before the onclick function specified is called. So, rather than building the string like this: