How to place a .location.search document in a variable without '?' Is there a simple regex, or can I just ignore the first character?
No problems
window.location.search.substr(1);
I did not even think about this for the first time, but you should refer to window.location, not document.location. It has the broadest browser support.
https://developer.mozilla.org/En/Document.location#Notes
Can you just replace the character ?? character with an empty string:
var searchWithoutQuestionMark = document.location.search.replace('?', '');
Steve