• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

145
Views
Se muestra el error Window.reload después de hacer clic

En nuestra página web, después de hacer clic, debe recargarse y yo uso window.location.reload para que eso suceda. Pero en la herramienta de desarrollo, dice Uncaught TypeError: Cannot read properties of null (reading 'reload') in javascript . ¿Hay alguna forma de arreglar?

 echo"<FONT color=\"#FF0000\" class=\"ft10\" onClick = \"SetName('".$site."','".$scan4data."','".$hwid."','".$un."','".$hwde."','".$hwlocde."');\" ><b>$barc</b></FONT></a><br>\n"; echo "<script type=\"text/javascript\">"; echo " function SetName(site, scan4data, hwid, un, hwde, hwlocde){"; //, scan4data, hwid, un, hwde, hwlocde, txthwlocde; //echo "{\n"; echo " var locname= hwlocde; "; echo " var site2= document.getElementById('site1').value; "; echo " var txthwlocde = site2 + locname;"; echo " window.location.reload('scantheid.php?site='+ site2 + '&scan4data=' + scan4data + '&hwid=' + hwid + '&un=' + un + '&hwde=' + hwde + '&hwlocde=' + hwlocde + '&txthwlocde=' + txthwlocde);"; //echo " alert ('scantheid.php?site='+ site + '&scan4data=' + scan4data + '&hwid=' + hwid + '&un=' + un + '&hwde=' + hwde + '&hwlocde=' + hwlocde + '&txthwlocde=' + txthwlocde);"; //echo " console.log(txthwlocde);"; echo "window.open('', '_self', ''); window.close()"; echo " }"; echo "</script>";
almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error