hey, im trying to link html pages but passing variables through... when i press the submit button in the previous page, the URL on IE is correct, showing "...?item=..and so on" but when i do document.URL it does not include this, thus making this code not work... if anyone has any ideas, i would appreciate it... thanks...
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs.split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
Brent