Update 2021
This is an overdue update, but as Frits's solution notes, using URLSearchParams is now the best approach.
const getQueryParameter = (param) => new URLSearchParams(document.location.search.substring(1)).get(param);
Answer from 2016
First off, $.urlParam is not an inherent jQuery function as far as I can tell, meaning you'll need to define it if you plan on using it.
When looking it up, I found a user-created function of the same name; I am going to assume that this is what you're referring to:
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}
It looks like this will return 0 if the parameter is not found, rather than undefined. If this function is in fact the one you're referencing, you'll want to do this instead:
if($.urlParam('GETparameter') === 0)