replace

fun replace(url: String)(source)

Removes the current page from the session history and navigates to the given URL.

MDN Reference


fun replace(url: URL)(source)