0

How to add a refresh button to able its refresh? Accept JavaScript code.

Animation css https://code.sololearn.com/W5MF33D37wM4/?ref=app

21st Dec 2018, 8:02 AM
Istamal Dagalaev
Istamal Dagalaev - avatar
2 Respostas
+ 3
Try to remove the whole body content, and reload it back. function refresh () { var body = document.body.innerHTML; document.body.innerHTML = ""; setTimeout(function () { document.body.innerHTML = body; },0); } https://code.sololearn.com/WYTaujVA0x6z/?ref=app
21st Dec 2018, 8:29 AM
Calviղ
Calviղ - avatar
0
Nice! Thanks Calvin.
21st Dec 2018, 11:59 AM
Istamal Dagalaev
Istamal Dagalaev - avatar