Vanilla Javascript to Get URL Parameter Values / Query String

How to get the value from URL Parameters ? Hey, Welcome to the tutorial. Today, we will learn How to get URL Parameter values ?geo=UK&size=300×600 in Javascript ? Video Tutorial If you are not used to Basics of What is Query String and Parameters ? Learn here before continuing to this tutorial How to approach the problem ? We will solve the problem using URL Object, which is basically getting the url of the page when it loads, then passing it though the URL object, like this – var url = new URL(“https://mrvirk.com?geo=UK&size=300×600”); Solution Code in Javascript Follow the code below on Codepen … Continue reading Vanilla Javascript to Get URL Parameter Values / Query String