how to get the variables of the url in javascript code example Example: get parameters from url www.test.com/t.html?a=1&b=3&c=m2-m3-m4-m5