I have a function that checks for parameters in the query string, and from there determines which page to open up in a certain frame. The only problem is that if I try to hit the page without having a query string, I get a null pointer exception. I've tried several different methods for checking for a null pointer or empty string, but nothing works. Here is the code that parses the query string...
Code:
function grabUrl(){
urlQuery=location.href.split("?");
urlTerms=urlQuery[1].split("&");
uParam=urlTerms[0];
}
[code]
and here is the error message...
'urlQuery.1 is null or not an object'
Thanks in advance,
Greg