L
laredotornado
Hi,
Given the search or query string from a URL ...
var searchStr = location.search;
How would i write a function, replace(paramName, paramVal), to replace
the value in the query string belonging to the param name,
"paramName", or, if there is no "paramName" given in the query string,
add it to the existing query string?
Thanks for your help, - Dave
Given the search or query string from a URL ...
var searchStr = location.search;
How would i write a function, replace(paramName, paramVal), to replace
the value in the query string belonging to the param name,
"paramName", or, if there is no "paramName" given in the query string,
add it to the existing query string?
Thanks for your help, - Dave