Skip to main content

toString

method URL.prototype.toString
Jump to headingURL.prototype.toString(): string

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

Return Type Jump to heading

string
Back to top