Passing variables in a URL - (Webflow Hosting)

Hi,

I’m using Webflow hosting and would like to pass through a variable when a user selects a page
e.g - http://www.website.com/?type=red

I hope to select an element on the page based on the variable with JS
Has anyone achieved this?

Something like this perhaps?

Auto-fill form values based on URL querystring


Also, feel free to contact me for further code help and/or customization of third-party plugins