Location JavaScript Tutorial

Syntax

location.replace(URL)
The replace() method loads a new page, specified by URL, in the current browser window.
The new page replaces the previous page's position in the history list.


    
     Using the replace method of the Location object
    
    
    
    Click the button to load the new page: http://www.rntsoft.com
    

        onClick='document.location.replace("http://www.rntsoft.com")'>