Location JavaScript Tutorial

Syntax

location.assign(URL)
The assign() method loads a new page, specified by URL, in the current browser window.


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

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