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

232
Views
Redirigir mi sitio web si la declaración es verdadera html
<html> <head> <title>Login Page</title> </head> <body> <form name="loginForm" method="post" action="login.php"> <table width="20%" bgcolor="0099CC" align="center"> <tr> <td colspan=2><center><font size=4><b>HTML Login Page</b></font></center></td> </tr> <tr> <td>Username:</td> <td><input type="text" size=25 name="userid"></td> </tr> <tr> <td>Password:</td> <td><input type="Password" size=25 name="pwd"></td> </tr> <tr> <td ><input type="Reset"></td> <td><input type="submit" onclick="return check(this.form)" value="Login"></td> </tr> </table> </form> <script language="javascript"> function check(form) { if(form.userid.value == "meet" && form.pwd.value == "meet") { return true; (I need to add it here) window.location.replace("http://stackoverflow.com"); (checked) window.location.href = "http://stackoverflow.com"; (checked) } else { alert("Error Password or Username") return false;#using windows replace shows incoorect id } } </script> </body> </html>

esta es una de mis páginas de inicio de sesión y necesito redirigirla si la condición es verdadera.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

  • En caso de que la condición sea verdadera a través del propio if, sin necesidad de devolver verdadero, podría redirigir directamente a la página a través de window.location.href = "ruta", de lo contrario, simplemente envíe la alerta.
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!