Here is my code:
and the link which I use to call this code:Code:function menu(dropdown) { var myindex = dropdown.selectedIndex var SelValue = dropdown.options[myindex].value if (SelValue == "no") { alert("Please select an item to view information") } else { var url = "pizza.php?request=menu&mvalue=" + SelValue window.open(url,'mywindow','width=225,height=250 toolbar=no statusbar=no') return true; } }
When I do this, everything goes as expected, except that "true" is written to the base window. Why does this happen and how can I fix it? ThanksCode:<a href='javascript:menu(document.menuForm.pizza_options);'>Link</a>




Reply With Quote