Browser Support

  • Chrome 32
  • Edge 12
  • Firefox 19
  • Opera 19
  • Safari 7


Web API URL

The Web API URL is used to access and manipulate URLs. URL stands for Uniform Resource Locator. A URL is a unique address which is pointing to the resource. The URL is essential for making HTTP requests for making interactions with the API and for getting or sending data.

Table of Content

  • Concepts and Usage
  • Accessing components of URL 
  • URL Modifications
  • Implementing the Queries

We will explore the above topics with their description and understand them with suitable examples.

Similar Reads

Concepts and Usage

The structuring and parsing of the URL follow the URL standard. A URL is composed of different parts. Some of the important parts are described below....

Accessing components of URL

For a given URL, the object can be created & parsing can be done for the URL, along with facilitating access to its constituent portions through its properties quickly....

URL Modifications

To modify the value of the URLs that are represented by the object, we can simply add new values for them. For instance, from the below URL, we will modify the username and password, which will update the overall URL. Thus, the properties of the URL can be settable....

Implementing the Queries

The search property of the URL component defines the portion of the query string. It allows one to look up the values of parameters. For instance, considering the below URL given, the search property of the URL component will be “username=val1&password=val2”. To search for the individual parameters, the URLSearchParams object’s get() method can be used....

Browser Support

...

Contact Us