1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
function reload(form) { var sb = form.search1; var val = sb.options[sb.selectedIndex].value; self.location = 'home.php?search1=' + val ; form.search1.selectedIndex; // too late! } and : <select name="search1" onchange="reload(this.form)">