how to make a page reload using javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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....

9th Mar 2019, 1:30 PM
Prabhat Kumar Singh
Prabhat Kumar Singh - avatar
3 Answers
+ 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
13th Aug 2019, 12:02 PM
boneSpider
boneSpider - avatar
+ 2
satnam Singh it's not working. it's just making my my page blank
10th Mar 2019, 5:23 AM
Prabhat Kumar Singh
Prabhat Kumar Singh - avatar
+ 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
9th Mar 2019, 2:30 PM
ODLNT
ODLNT - avatar