+ 6
how to make a page reload using javascript
As location.reload() function is not working on solo learn. so how can I make my output to reload by any way like clicking on btn etc....
5 Réponses
+ 3
Janning⭐, Satnam Singh and Prabhat Kumar Singh please help me I'm getting the same result, I tried changing document.location.reload to window.location.reload on line 690, it initially displays the table and changes correctly the first time as expected when a menu option is selected, but when a follow up option is selected the document.write makes the page go blank instead of highlighting different table cells. I understand that document.write is destructive and also calls document.open, yet appending text onto innerHTML with += and using one document.write before reloading the page using onchange with corresponding values in this program used to work on SoloLearn a few months ago. Any ideas on how to repair this dynamic feature?
https://code.sololearn.com/WTRbwp008OY7/?ref=app
+ 2
satnam Singh
it's not working. it's just making my my page blank
+ 1
Prabhat Kumar Singh
Reload page or canvas?
Using ctx.clearRect(0,0,400,320) and refactoring your code some will get the job done