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

152
Views
how to prevent IDM (internet download manager) to download song, song link is given in anchor tag in HTML

I'm making audio player using wavesurfer.js. I have made an anchor tag and put the song link in anchor's href attribute like this.

<a href="songs/song5.mp3" class="btn songlink songBtn"><i class="fa fa-play fa-lg playbtn"></i></a>

Everything is working fine but if I install [IDM]. It starts downloading the song and songs doesn't play on the browser. So where should I put the song link in order to prevent the downloading.

here is my jQuery code and html code is as given above

$(".player-playlist .songlink").click(function(){
                songLink = $(this).attr('href');
                wavesurfer = WaveSurfer.create({
                    container: '#playing-wave',
                    waveColor: '#CCCCCC',
                    progressColor: '#E64C51',
                    barWidth:1,
                    height:40,
                    barGap:0,
                    backgroundColor: 'transparent',
                    cursorColor: 'transparent',
                    plugins: [
                        WaveSurfer.minimap.create({
                            container: '#wave-minimap',
                            waveColor: '#CCCCCC',
                            progressColor: '#E64C51',
                            barWidth:1,
                            height:30,
                            barGap:0,
                            backgroundColor: 'transparent',
                            cursorColor: 'transparent',
                        })
                    ]
                });

});
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!