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

120
Views
abra la ventana emergente leaflet.js con un enlace

¿Hay alguna manera fácil de agregar un enlace para una ventana emergente específica en un folleto o cualquier otro objeto de JavaScript?

Tengo un sitio web con muchas ventanas emergentes, esta ventana emergente obtiene un archivo html de una carpeta con mucho texto.

 fetch('../assets/txts/4.html', {mode: 'no-cors'}) .then(res => res.text()) .then(data => text4 = data) .then(() => L.marker([331, 370], { icon: makerRot }).addTo(map).bindPopup(text4, { maxWidth: 800, keepInView: true, maxHeight: 500 }))

cuando escribo ejemplo.com/texto/texto1.html puedo ver el texto obviamente, pero cuando hago clic en la ventana emergente me quedo en ejemplo.com

¿Hay alguna manera de agregar un enlace (example.com/text4) para que cuando haga clic en el enlace se abra la ventana emergente correcta? Y aún mejor, si hago clic en la ventana emergente, la URL se actualizará al enlace correspondiente.

Conozco los anclajes de sección y #, pero podría transferir esto a mi problema.

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!