assign

fun assign(url: String)(source)

The assign() method of the Location interface causes the window to load and display the document at the URL specified. After the navigation occurs, the user can navigate back to the page that called Location.assign() by pressing the "back" button.

MDN Reference


fun assign(url: URL)(source)