patrik
05-02-2003, 06:48 PM
Ok, I give - what's the simple way to remove the first character in the contents of a variable?
I'm appending variables to a link in order to pass it to the next page*, and SLICE-ing it as below, which does work:
myString = new String(location.search) ;
mySlice = myString.slice(1) ;
Is there a simpler way to remove the "?" that comes in as the first character of location.search?
TIA!
*please tell me this work cross-domain!
I'm appending variables to a link in order to pass it to the next page*, and SLICE-ing it as below, which does work:
myString = new String(location.search) ;
mySlice = myString.slice(1) ;
Is there a simpler way to remove the "?" that comes in as the first character of location.search?
TIA!
*please tell me this work cross-domain!