play a sound wiith js
var bMusic = new Audio('welcome1.mp3')
bMusic.play()var audio = new Audio('audio.mp3');
audio.play();//play audio with from html audio element:
document.getElementById('myAudioTagID').play();
//play audio with out html audio tag
var myAudio = new Audio('my_great_song.mp3');
myAudio.play();
Also in JavaScript:
- javascript array exists check
- get highest value from array javascript
- javascript redirect with extra url arguments
- javascript rupiah format
- mysql json change key
- inline if else javascript
- jquery form id submit
- iterate array in javascrpt
- compare string camelcase and lowercase javascript
- react-data-table-component api action button
- react chart js 2
- get time in javascript
- set readonly in javascript
- js this in object
- nestjs version
- creating a json model sap ui5
- change icon on click angular
- firebase get current user javascript
- $100 dollar phones
- jquery nested ul li
- toggle jquery remove others
- new date() javascript
- how to add seconds to time in js
- javascript ajax post form data