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

117
Views
JS no enviará al usuario a una subpágina

Quiero enviar al usuario a una subpágina en mi sitio web usando js ya que necesita declaraciones if/else. El js puede enviar al usuario a youtube, twitter y otros sitios web, pero no puede enviar al usuario a mi subpágina. Ayuda.

Aquí está el JS:

 function myFormSubmit() { myInput = document.getElementById('number'); if(myInput.value == 1) { window.location.href = 'https://csgotradeup.org/tradeups/9324ec1' alert(1); } }

Aquí está el HTML:

 <div class="Searchbox"> <form onsubmit="myFormSubmit()"> <input type="number" class="input" placeholder="What is your budget?" min="0" id="number" </form> </div>
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!