Skip to content

devutkarshdixit/utkarshdixit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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.