The URL API is a modern upgrade on what the Location object was doing. Once a URL is generated (e.g. using the URL() constructor), you'll have the following extra features: URLURL. username - This allows you to include a username as part of the URL, for a private login. URL.password - Same as URL. username , now deprecated on Location but available on the URL object. URL searchParams - Allows you to access individual parameters in a query string.

2m read timeFrom mailchi.mp
Post cover image

Sort: