Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
Music In JavaScript when on button click

When button onclick should work with this mp3 file which I have uploaded to GitHub. it wouldn't work even though I have tried even using the link thru https://voca.ro/1dcHxW3v1oQA

function play() {
  var audio = new Audio('https://voca.ro/1dcHxW3v1oQA
');
 }
<head>
<body>
<button onclick="play()">bwbfw</button>
</body>
</head>

with the code changed it still won't play

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Link to the file and trigger play()

function play() {
  var audio = new Audio('https://bobzilla07.github.io/Music_Tap/1979.mp3');
  audio.play();
}
<button onclick=play()>bwbfw</button>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!