VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-location-reload-method/

⇱ HTML DOM Location reload() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM Location reload() Method

Last Updated : 29 Jan, 2024

The location reload() method in HTML DOM is used to reload the current document. This method refreshes the current documents. It is similar to the refresh button in the browser. 

Note: It does not return any value. 

Syntax:

location.reload( forceGet )

Parameters:

It does not take any parameters

Example: This example illustrates the use of the location reload( ) method.

Output:

👁 Image

Supported Browsers:

  • Google Chrome 1
  • Edge 12
  • Firefox 1
  • Opera 3
  • Safari 1
Comment