+ 3

How to control the audio sound in JavaScript?

suppose i have a button if i click the button the sound of the audio gradually increase please explain it too on your answer with better example's.

11th Mar 2018, 6:56 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar
3 Answers
+ 6
var audio=new Audio("song.src"); vol=0; audio.volume=vol; button.onclick=vol++;
11th Mar 2018, 7:14 AM
į Œį ŒCode X
į Œį ŒCode X - avatar
+ 3
yes
11th Mar 2018, 7:17 AM
į Œį ŒCode X
į Œį ŒCode X - avatar
+ 1
is Volume is the keyword in JavaScript
11th Mar 2018, 7:16 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar