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

113
Vistas
JS won't send the user to a subpage

I want to send the user to a subpage on my website using js since it needs if/else statements. The js can send the user to youtube, twitter and other websites but it can't send the user to my subpage.. Please help

Here is the JS:

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

Here is the 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
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