is the same as
var params = window.location.search.slice(1)
If you don’t need to drop the ? then you can simply reference location.search
is the same as
var params = window.location.search.slice(1)
If you don’t need to drop the ? then you can simply reference location.search