Forum Moderators: open
while (selectedArray.length < inForm.model.options.length) {
inForm.model.options[(inForm.model.options.length - 1)] = null;
}
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.model.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.make.options[0].value == '') {
inForm.make.options[0]= null;
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {
if (navigator.platform == 'Win32' ¦¦ navigator.platform == 'Win16') {
window.history.go(0);
}
}
}
}
}
// End -->
</script>
i want the alfa romeo to be alfa+romeo in the url bar after submission and not alfa_romeo as it is now
Put this in your browser's location bar and hit the Enter key and you may get an idea.
javascript:alert("Alfa_Romeo".replace("_", "+"));
Edit: left out closing paren.
[edited by: MarkFilipak at 8:47 am (utc) on Mar. 19, 2008]