What is URL Query String and Parameters ?

Опубликовано: 07 Сентябрь 2019
на канале: Mr. Virk Media
20,596
193

Explanation: https://mrvirk.com/what-is-url-query-...
Get URL Parameter Values from Query String in Javascript:    • Get URL Parameter Values from Query S...  

Key Difference between Query String and Parameters.

Query string is string included in the url after a question mark (?)

A Query String is the string passed to the url in the form of parameters, it can contain one or more parameters, each parameter is separated using the ampersand (&)

Below is an classic use-case of real world use of query string and parameters.

Query String Example
Query String Example
Explanation – Lets look at the Query string breakdown

In the above example, we search for a keyword “mrvirk” in Google search, and the page passes 3 parameters back to the Google server that helps G Search to provide you results for the keyword.

Parameter 1 (client=firefox-b-d): tells google what browser user is on, in my case its Firefox
Parameter 2 (channel=trow): tells google the channel
Parameter 3 (q=mrvirk): tells google what the user searched for, in this case mrvirk