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

222
Views
No puedo establecer el valor de una variable js después de redirigir a otro html

Tengo un botón con una función que básicamente redirige a otro documento html y luego configura una variable. ese es el codigo

que la función que está redirigiendo

 function polloCheck() { state.type = "aves"; defaultStatementCategory(); }

/ la siguiente función es addeventlistener ************************/

 function goCategoryPollo() { document.location.href = "categoriaAves.html"; window.onload.polloCheck(); }

incluso si pongo windows.onload.polloCheck, cuando hago console.log(state.type) el resultado es una cadena vacía. (state.type = "") ese es el resultado y la declaración predeterminada también.

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!