<form name="jumpy"> <select size="1" onChange="gone()" name="example"> <option value="http://www.html68.tr.gg" selected="selected">Yahoo.com</option> <option value="http://www.html68.tr.gg">Google</option> <option value="http://www.html68.tr.gg">Lycos</option> <option value="http://www.html68.tr.gg">AltaVista</option> </select> <input type="button" onClick="gone()" name="test" value="Go!" /> </form> <script language="javascript"> var displaymode=0 var iframecode='<iframe id="external" style="width:95%;height:400px" src="http://www.html68.tr.gg/"></iframe>'
if (displaymode==0) document.write(iframecode)
function gone(){ var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value if (document.getElementById&&displaymode==0) document.getElementById("external").src=selectedurl else if (document.all&&displaymode==0) document.all.external.src=selectedurl else{ if (!window.win2||win2.closed) win2=window.open(selectedurl) //else if win2 already exists else{ win2.location=selectedurl win2.focus() } } }
</script><form name="jumpy"> <select size="1" onChange="gone()" name="example"> <option value="http://www.html68.tr.gg" selected="selected">Yahoo.com</option> <option value="http://www.html68.tr.gg">Google</option> <option value="http://www.html68.tr.gg">Lycos</option> <option value="http://www.html68.tr.gg">AltaVista</option> </select> <input type="button" onClick="gone()" name="test" value="Go!" /> </form> <script language="javascript"> var displaymode=0 var iframecode='<iframe id="external" style="width:95%;height:400px" src="http://www.html68.tr.gg/"></iframe>'
</script>