Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 543 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 543 Bytes

The Window Location Object


The location object contains information about the current URL. The location object is a property of the window object.

Window location.replace()


The replace() method replaces the current document with a new one.

The difference between assign() and replace():


replace() assign()
replace() removes the current URL from the document history. The assign() method loads a new document.
  • With replace() it is not possible to use "back" to navigate back to the original document.