How to get parameter querystring value from URL with javascript

snippet to get querystring value from url with javascript:

how to use :