Which language do I need ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Which language do I need ?

Hi, I want to make a button which will mute an audio file that has the autoplay attribute. I only know html and css, do I need to learn js to achieve that ?

2nd Nov 2017, 11:28 AM
Max
Max - avatar
3 Answers
+ 4
Use muted DOM function var video= document.createElement('video'); // video tag element video.muted = true; // video is muted : video.muted = false; // video voice is on
2nd Nov 2017, 11:46 AM
Calviղ
Calviղ - avatar
+ 2
Thanks for your help guys.
2nd Nov 2017, 11:52 AM
Max
Max - avatar
2nd Nov 2017, 12:36 PM
Calviղ
Calviղ - avatar