globalsURL()prototypeURL.toString()Version: 3.28.0On this pageURL.toString()The URL.toString() method returns a string containing the whole URL. It is effectively a read-only version of URL.prototype.href.SyntaxtoString()ParametersNone.Return valueA string.