JS Sound: Play sounds when events happen on page elements

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 136 All time: 360 This week: 3Up
Version License JavaScript version Categories
jssound 1.0GNU General Publi...5Audio, Events
Description Author

This object can play sounds when events happen on page elements.

It can listen to events on given page elements and play given sounds when those events happen.

The object can match elements to listen to the given events by class or id selectors.

It can play sounds of multiple alternative formats depending on what each browser supports.

Innovation Award
JavaScript Programming Innovation award winner
April 2017
Many sites need to call to the attention of the users when certain events occur. Playing sounds is one of the ways to achieve that.

This object can play sounds as result of events that may occur due to user interactions.

Manuel Lemos
Picture of Dave Norminton
  Performance   Level  
Name: Dave Norminton <contact>
Classes: 3 packages by
Country: United Kingdom
Age: ???
All time rank: 1236 in United Kingdom
Week rank: 27 Up4 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x


<h1>JsSound</h1> <p> JsSound makes it very simple to attach sound events to elements. JsSound can be used on either class or id selectors, can take either a file name as a string or to accomodate different browsers can accept an array of different files. </p> <p> JsSound will detect the capabilities of the browser and as long as the correct format is supplied will use that format. <p>

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.html Example Example
Plain text file js-sound.js Class Class source
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file style.css Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:360
This week:3Up