URL: canParse() static method - Web APIs | MDNThe example demonstrates the usage of the URL.canParse() static method for absolute and relative URLs.