Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda