how to reload page in Solo learn with a button | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to reload page in Solo learn with a button

I want to know how to reload page on button click

5th Sep 2020, 1:52 PM
Abhishek Kumar
Abhishek Kumar - avatar
5 Answers
+ 1
You can do that with JavaScript Use: location.reload();
5th Sep 2020, 2:02 PM
Mahmud Oyshik
Mahmud Oyshik - avatar
+ 1
Then use any from this list :: 😁 location = location location = location.href location = window.location location = self.location location = window.location.href location = self.location.href location = location['href'] location = window['location'] location = window['location'].href location = window['location']['href'] location = window.location['href'] location = self['location'] location = self['location'].href location = self['location']['href'] location = self.location['href'] location.assign(location) location.replace(location) window.location.assign(location) window.location.replace(location) self.location.assign(location) self.location.replace(location) location['assign'](location)
5th Sep 2020, 2:10 PM
Mahmud Oyshik
Mahmud Oyshik - avatar
+ 1
Thanks guys
5th Sep 2020, 2:36 PM
Abhishek Kumar
Abhishek Kumar - avatar
0
but it does not work and shoes empty screen,can you help me with code ,I am inserting it .
5th Sep 2020, 2:04 PM
Abhishek Kumar
Abhishek Kumar - avatar
5th Sep 2020, 2:05 PM
Abhishek Kumar
Abhishek Kumar - avatar