location.search
Posted: Mon Sep 27, 2004 4:38 am
i use this line in my js script:
location.search = location.search + "?cs=1"
but this doesn't work...i used alert() to print location.search before and after and it doesn't change...
so can i use this line or location.search is read-only ?
P.S.
also question about match() function.... i found out it return array of 3 element. first cell is the matched string, end other two cells contains first and last chracters of matched string...
Is this function supposed to return an array?? none of the examples/references i saw, mention that match() return array
location.search = location.search + "?cs=1"
but this doesn't work...i used alert() to print location.search before and after and it doesn't change...
so can i use this line or location.search is read-only ?
P.S.
also question about match() function.... i found out it return array of 3 element. first cell is the matched string, end other two cells contains first and last chracters of matched string...
Is this function supposed to return an array?? none of the examples/references i saw, mention that match() return array