Search
 
SCRIPT & CODE EXAMPLE
 

CSS

check if audio element is playing css

var myAudio = document.getElementById('myAudioID');

if (myAudio.duration > 0 && !myAudio.paused) {

    //Its playing...do your job

} else {

    //Not playing...maybe paused, stopped or never played.

}
Comment

PREVIOUS NEXT
Code Example
Css :: unclickable button 
Css :: css how to center a link 
Css :: how to remove margin of body 
Css :: how to increase height of input box in css 
Css :: how to center horizontally in css 
Css :: how to make all buttons same size css 
Css :: center text in div 
Css :: margin clickable 
Css :: css hide timeline 
Css :: remove hover css on a text 
Css :: text area resize css 
Css :: border not showing css 
Css :: Adding gradient to text color 
Css :: javascript read me text 
Css :: css round outline 
Css :: reset id sequence postgres 
Css :: underline css still there after text-decoration: none 
Css :: text overflow 
Css :: position absolute align center 
Css :: html text not wrapping 
Css :: install webpack encore 
Css :: orientation css max and min width media query 
Css :: image rotate with css 
Css :: compass font awesome 
Css :: how to use the transition left in css 
Css :: css grid span columns 
Css :: expo vector icons install 
Css :: background color css 
Css :: laravel reference css in public 
Css :: javafx set border outside 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =