How to reload the site in php using button and javascript onclick='location.reload'? It just get blank after i use this. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to reload the site in php using button and javascript onclick='location.reload'? It just get blank after i use this.

Php js reload

27th Mar 2018, 8:53 PM
Doodz
Doodz - avatar
2 Answers
0
onclick="location.reload()" reload is a method of the location object and as such needs ().
27th Mar 2018, 11:22 PM
Adam
Adam - avatar