To change a frame using a form in another frame (p. 421)
onClick="top.mainFrame.location.href='./'+document.form1.textfield.value"