<!DOCTYPE html> <html> <head> <title> location.reload() method </title> <script> function fun() { location.reload(); } </script> </head> <body> <p> Welcome to the lidihuo.com </p> <p> This is an example of location.reload() method </p> <p> Click the following 'Reload' button to see the effect. </p> <button onclick = "fun()"> Reload </button> </body> </html>
输出
location.reload() method
Welcome to the lidihuo.com
This is an example of location.reload() method
Click the following 'Reload' button to see the effect.