Greasy Fork is available in English.

Discussions » Creation Requests

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

§
Posted: 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?

§
Posted: 17.08.2018
Edited: 17.08.2018
<audio id="player"></audio>
<div onclick="let p=document.getElementByID`player`; p.src='./song.mp3'; p.play()">Click me</div>

Post reply

Sign in to post a reply.