Please guys I need help: I want to write a code such that when I click a button, an audio player would pop up. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Please guys I need help: I want to write a code such that when I click a button, an audio player would pop up.

Audio Pop Up

5th May 2018, 3:31 PM
<Sherlock />
<Sherlock /> - avatar
6 Answers
+ 1
you can put the audio element in the page, and hide it using css (display:none). i recomend you to use jquery. and when you click on your button, it shows again
9th May 2018, 11:02 AM
Frederico
Frederico - avatar
+ 2
yes: using html JS and CSS
9th May 2018, 5:42 AM
<Sherlock />
<Sherlock /> - avatar
+ 2
you can search how to modify css elements using js, then you can put a display:block, for an example
9th May 2018, 11:02 AM
Frederico
Frederico - avatar
+ 2
thanks man you're a genius
10th May 2018, 4:42 PM
<Sherlock />
<Sherlock /> - avatar
+ 1
in html?
8th May 2018, 8:09 PM
Frederico
Frederico - avatar
+ 1
I really recomend you to study jquery, it's so much easier than "normal" js.
9th May 2018, 1:23 PM
Frederico
Frederico - avatar