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

105
Vistas
How to make a script that will generate a url by adding the input provided in form

I want to make a javascript that will redirect to the url that will be generated by adding the input provided in form and the main url.

For example , If the user puts 'Hello' inside the textbox Then it should redirect it to 'https://example.domain/Hello' And if he puts Bye then it should redirect it to 'https://example.domain/Bye'

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can simply grab the value of the textinput and append it to your baseurl

const inputBox = document.getElementById("input");
let newURL = 'https://example.domain/' + inputBox.value;

Please supply some Code when posting Questions to SO. Follow the How to guide https://stackoverflow.com/help/how-to-ask

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