URL
The URL
interface is used to parse, construct, normalize, and encode URLs. It works by providing properties which allow you to easily read and modify the components of a URL.
Safe to Use
URL
is considered safe to use.
It’s supported by 94% of global browsers.
Browsers
Version Breakdown
Full Support
Implemented with the vendor prefix: webkit
Full Support
Implemented with the vendor prefix: webkit
Full Support
Full Support
Full Support
Before version 57, Firefox had a bug whereby single quotes contained in URLs are escaped when accessed via URL APIs (see bug 1386683).
Full Support
Before version 57, Firefox had a bug whereby single quotes contained in URLs are escaped when accessed via URL APIs (see bug 1386683).
Full Support
Full Support
Partial Support
Available as a part of the URL
module.
Full Support
Implemented with the vendor prefix: webkit
Full Support
Implemented with the vendor prefix: webkit
Full Support
Implemented with the vendor prefix: webkit
Full Support
Implemented with the vendor prefix: webkit
Full Support
Implemented with the vendor prefix: webkit
Full Support
Implemented with the vendor prefix: webkit
Full Support
Implemented with the vendor prefix: webkit
See Also
- Polyfill of
URL
incore-js
- URL API
- What is a URL?
- Property to obtain a
URL
object:URL
. URLSearchParams
.