replace

fun replace(url: String)(source)

The replace() method of the Location interface replaces the current resource with the one at the provided URL.

MDN Reference


fun replace(url: URL)(source)