The assign() method of the Location interface causes the window to load and display the document at the URL specified.
assign()
MDN Reference