Where URL is the location which is to be replaced by current browser's history entry.
Description of code :
To illustrate the use of location.replace() method here we have created a simple HTML page into which we have created a button which calls the function replaceLocation(). Functionality of this function is to call method location.replace().
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.