List-box scripting

how would I go about scripting the items in a drop down list box with code to call up a html in a seterate frame. Where exactly do I input this code.