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

144
Views
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
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!