Jump to content

Sound files in Javascript


Jondera

Recommended Posts

After an extensive search of the W3schools databases, I find myself unable to find any method of loading a sound file to play off of the browser, once, through a function.I am attempting to put a short sound byte into my page using the onload and onunload events to trigger functions, but I can't find the proper code to call the files within the functions. Could somebody please help me figure this out, or direct me to somewhere where I could figure it out?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...