Menu
I have a drop-down menu and when the options are clicked, a function runs to open a new window depending on their value. However, the first option I do NOT want to open anything, and when it is clicked I want nothing to happen. I tried to do this in an if/else statement, and now nothing works. Any help?
[CODE]
function popWindow(secId) {
var loca = document.getElementById(secId).value;
var urlLoca = “directions/” + loca + “.html”;
if (loca == “bad”) {
exit;
} else {
newwindow=window.open(urlLoca,’name’,’height=400,width=550,scrollbars=yes’);
if (window.focus) {newwindow.focus()}
return false;
}