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

210
Views
Issues with browser compatibility and Save As action on <a href=""> click

There is a basic difference between browsers on Windows and Linux( Ubuntu 22.04 ) operating systems.

Default behavior on Windows (clean installation) is that files are automatically downloaded in Download folder.

Default behavior on Linux ( clean installation ) is that Save As dialog is raised. Default Ubuntu 22.04 Save As Chrome

Yes I'm aware that you can configure your browser and enable the feature on Windows operating system. But from UX perspective that is one step too many.

Is there a way to programmatically raise the Save As dialog. For instance this is a snippet that generates a link with few of the options tested:

download(url, downloadName) {
    const a = document.createElement('a');
    a.href = url;
    a.style.display = 'none';
    // a.download = '';
    a.download = downloadName;
    a.target = '_blank';
    a.type = 'application/unknown';
    document.body.appendChild(a);
    a.click();
    document.body.removeChild(a);
    window.URL.revokeObjectURL(url);
  }

Best regards

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!