Evo i odnosnog koda:
<!-- The code below is the JavaScript Code in the HEAD of this document that works the drop down menu--> < script type="text/javascript"><!--// function goToPage763(mySelect) { PageIndex2=mySelect.selectedIndex; { if ( mySelect.options[PageIndex2].value != "none" ) { //this is the key code in the JavaScript to open the new page in //the iframe:- frames['iframe2'].location.href = mySelect.options[PageIndex2].value; } } } //--> < /script>< form name="form763">< p>< select name="select763" size="1" onchange="goToPage763(this.form.select763)">< option value="none" selected="selected">Select a page and go < /option>< option value="anchors.htm">What's in a name - Anchors < /option>< option value="background_images.htm">Background Images - Ken Ward's HTML Tutorial < /option>< option value="Bold.htm">Formatting - HTML Tutorial < /option>< option value="buttons.htm">Form Components - HTML Guide - Buttons, Text Area, Action, etc < /option>< option value="CellProperties.htm">Aligning Table Cells < /option>< option value="Comments.htm">HTML Comments < /option>< option value="font.htm">The Font Tag < /option>< option value="form-post.htm">Posting a form < /option>< option value="forms.htm">Forms < /option>< option value="FormSelect.htm">Menus in Forms < /option>< /select>< /p>< p><!-- The code below is the code in the body of this document that writes the form--> < iframe name="iframe2" src="index.html" align="top" height="100%" width="95%" hspace="10" vspace="10" align="middle">If you can see this, your browser does not support iframes! < /iframe>< /p>< /form> |