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

171
Views
Creación de un hipervínculo dinámico que se abre en un navegador específico

< div class="last-call-number ng-binding ng-scope" ng-if="lastCall.number.length != 10 && lastCall.number.length != 11">+12345678910

Quiero modificar esto en un enlace href dinámico. Necesito tomar el número de teléfono que parece estar almacenado en javascript como último número de llamada y ponerlo al final de una URL menos el +1 para que se vea así:

< a href="microsoft-edge: http://myurl.com/2345678910">

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Puedes hacerlo

Si tienes una entrada

 const anchor = document.getElementById("anchorID"); const input = document.getElementById("inputID"); input.addEventListener('change', (e) => { anchor.setAttribute('href', `microsoft-edge:http://myurl.com/+1${e.target.value}`); });

Más

 const anchor = document.getElementById("anchorID"); const span = document.getElementById("ID"); anchor.setAttribute('href', `microsoft-edge:http://myurl.com/+1${span.innerHTML}`);
about 4 years ago · Juan Pablo Isaza Report

0

Puedes usar literales de plantilla como este:

 let last_call_number = '+12345678910' // Splitting the string depends on the use case. You can also capture the last 10 digits of the number. let number = last_call_number.split('+1')[1] let url = `microsoft-edge:http://myurl.com/${number}` console.log('URL:', url)

about 4 years ago · Juan Pablo Isaza Report
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!