Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

control audio javascript

var audio = new Audio("folder_name/audio_file.mp3");
audio.currentTime = 0;	// Set audio play time from the beginning of audio
audio.play();			// start playing audio
audio.pause();			// pause audio
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery on checkbox change 
Javascript :: keypress event 
Javascript :: dynamic copyright year js 
Javascript :: json javascript 
Javascript :: see all functions in a website with console 
Javascript :: default input type date limit date js 
Javascript :: regExp numero français 
Javascript :: javascript classlist add 
Javascript :: js get all indexes of value in array 
Javascript :: react native header height 
Javascript :: eject expo app to android and react native 
Javascript :: how to run curl in javascript 
Javascript :: javascript add to array 
Javascript :: How to fix WordPress jQuery is not defined 
Javascript :: react-router-dom 
Javascript :: format date month day year javascript 
Javascript :: usestate hook with prevstate 
Javascript :: prime number js 
Javascript :: queryselectorall data attribute 
Javascript :: how to turn a number negative in javascript 
Javascript :: js cut string after last char 
Javascript :: javascript add listeners to class 
Javascript :: jquery sort listing alphabetically 
Javascript :: gulp synchronous tasks 
Javascript :: javascript class constructor 
Javascript :: current date minus days javascript 
Javascript :: react copy to clipboard button 
Javascript :: nested loops js 
Javascript :: how to set dropdown value in jquery 
Javascript :: jquery get selected checkbox value array 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =