Skip to main content
method URL.prototype.toString
URL.prototype.toString(): string
Deprecated

The toString() method on the URL object returns the serialized URL. The value returned is equivalent to that of href and toJSON.

Return Type

string
Back to top