i am getting the error "indexOf is not a function" when calling
URi.indexOf('?')
the code:
function removeFromURL(URi, parameter)
{
var regexp, path, params, qStart = URi.indexOf('?') + 1;
if (qStart == 0 || qStart == URi.length-1) return URi;
regexp = new RegExp("(" + parameter + "=[^&]+(&)?)");
return URi.substring(0,qStart) +
URi.substring(qStart).replace(regexp,'').replace(/&$/,'');
}
Thanks a lot Dennis