how many times can you spot the letter p in:
q: javascript runtime error: unable to get property split of undefined or null reference while debugging i got this error in my below part of code..
 querystirngvalue = document.referrer.split(myqurystring)[1].split(%)[1].split(253d)[1];
    alert(querystirngvalue);


a:  document.referrer.split(myqurystring)[1].split(%)

you first split on myqurystring (which by itself is misspelled?)
with [1] you then want the second array value (because arrays start at 0)
so if myqurystring is not in the querystring you now have a null value
so
null.split(%)

causes: uncaught typeerror: cannot read property split of undefined(…)

user
The given text has 17 "p"s.
assistant