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

139
Vistas
How do I use Javascript to modify the base URL of a website to a custom one with the path?

For example, I want to turn: https://google.com/A7239J into... https://example.com/google.com/A7239J I want to be able to do this within the browser, using Javascript. Thanks!

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

If you mean to fetch resources using that URL as the base URL, then you can use the <base> element:

<!-- every URL will be relative to this value -->
<base href="https://upload.wikimedia.org/wikipedia/commons/">
<img src="./4/47/PNG_transparency_demonstration_1.png" width=300>
<img src="./c/cf/Black_hole_-_Messier_87.jpg" width=300>

about 4 years ago · Santiago Gelvez Denunciar
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