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

103
Views
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 answers
Answer question

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