Drop down menu with list box

I would like to create a drop down menu somehow that when the user chooses on of the options in the list, it’ll go and open the specified view. I tried this with a listbox, but I can’t find an event to code that’ll work when the user clicks a selection. Only when I actually click the list box. I’m trying to make this work on the web. Any suggestions?

Subject: Drop down menu with list box

Use the onchange event and javascript similar to this:

var viewName = this.options[this.selectedIndex].text;

var urlStub = window.location.href;

urlStub = urlStub.substring(0,urlStub.indexOf(‘.nsf’) + 4);

window.location.href=urlStub + ‘/’ + viewName;