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

149
Vistas
Open link in another browser
<button>open in another browser</button>

 

const btn = document.querySelector('button') 
btn.addEventListener('click', () => {
    window.open('https://example.com', '_blank')
})

Assume the HTML button above will be viewed in an Android WebView.

I need the link to open in an external browser. For this, I know that it is necessary to program both on the front-end and on the back-end.

In Java, for another application to open the link as expected, you need to use Intent, as shown in this post: https://stackoverflow.com/a/17994857

What I need to know is how to program JavaScript so that _blank is understood by Java as a link that must be opened externally.

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