+ 1
Problem
https://code.sololearn.com/W8C62k2JZb7d/?ref=app I have made this code and I want to add sound to it That whenever I click it makes a noise Please help
6 Answers
+ 3
There is no playSound() function defined?
If you would like to play the sound in clicking wouldn't it be better to keep the user on this site instead of redirecting them to YouTube?
+ 3
I am guessing you don't understand rick-rolling or what your code is supposed to do.
+ 3
So the audio should start on clicking? What happens if the user clicks again while the audio is already playing?
I think, you could attach the play-function to a button element. You could try to hide the audio element.
I just found this lesson on sololearn:
https://www.sololearn.com/learn/HTML/2193/?ref=app
+ 1
Btw can you write the code for the sound thingy? (Also the youtube link is temporary)
+ 1
Thank you for your help!
0
I am guessing that you got rick rolled!