Discussões » Solicitações de Criação

how to create a script that you can a music player in html?? help pls

§
Publicado em: 17/08/2018

how to create a script that you can a music player in html?? help pls

hello! I'm looking for a script that will play music.

Does a script like this already exist out there?

§
Publicado em: 17/08/2018
Editado em: 17/08/2018
<audio id="player"></audio>
<div onclick="let p=document.getElementByID`player`; p.src='./song.mp3'; p.play()">Click me</div>

Enviar resposta

Entre para publicar uma resposta.