python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Target video source in HTML with JavaScript
My video is not playing after editing the source via JavaScript, can you help me with that?
HTML : <video class="background-video" controls muted loop autoplay>
<source id=&q...
user18194401
Votes: 0
Answers: 2
Image src won't change using JavaScript
I feel like I have this right, but for some reason, the addEventListener isn't functioning how I want it to. When I try to change the img.src below, it still only shows the 'images/expand.jpeg' img.
I...
Andrew Damavoletes
Votes: 0
Answers: 1
Problem in audioElement.src , through which i ran and play another songs .But now showing error 404(not found)
Array.from(document.getElementsByClassName('songItemPlay')).forEach(function (element) {
element.addEventListener('click', (e) => {
makeAllPlays();
index = parseInt(e.target.id...
shriyansh gupta
Votes: 0
Answers: 1
Changing Img Src when clicked using event listener
Im creating a rock, paper,scissors project but using the water, fire and grass Pokemon instead of traditional Rock Paper Scissors. When I'm clicking the Pokemon of choice "choice" I want the...
Bradley Owens
Votes: 0
Answers: 1