Location assign() method
Location object
Definition and Usage
The assign() method loads a new document.
Syntax
location.assign(
URL
)
Browser support





All major browsers support the assign() method
Example
Example
Use assign() to load a new document:
Try it »
Location object