Not TestedTesting not done, may not work properly
Networking

URL API

Parse, construct, and validate absolute URLs, protocols, ports, and pathnames.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

const u = new URL('https://free-browser-tools.mohitkrgupta.dev/tools/webapi-utils?search=fetch');
console.log(u.hostname, u.searchParams.get('search'));

About the URL API Web API

URL API is used to parse, construct, normalize, and encode URLs.

Specification:W3C & WHATWG Web API Standard
Sponsored Content