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

519
Views
How to autoplay an embedded spotify playlist?

In my web-app, I've embedded a spotify playlist.Now, all I want is to autoplay the playlist when the website opens or let's say when user clicks the "play" button on my website and not on the Spotify's iframe. The code for the same is:

<!DOCTYPE html>
<html>
<body>

<iframe src="https://open.spotify.com/embed/playlist/37i9dQZF1EJEjtwRUdhPUX?utm_source=generator&theme=0" width="100%" height="80" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>
<script>
document.querySelector('[title="Play"]').click()
</script>
</body>
</html>

The link for JS Fiddle is JS_Fiddle

I know the question is being asked before but none of the solution seems to work!

about 4 years ago · Juan Pablo Isaza
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!