HomePage | RecentChanges | Preferences | Newbie Help

Category HTML Forms | [Category JavaScript FAQ]?

Here's one with a "Go" link....

<OPTION VALUE="main.html" SELECTED="selected">Home</OPTION>
<OPTION VALUE="new.html">What's New?</OPTION>
<OPTION VALUE="friends.html">Friends</OPTION>
<OPTION VALUE="search.html">Search</OPTION>
<INPUT TYPE="button" VALUE="GO" ONCLICK="jumpBox(this.form.elements[0])">

and one without...

<form action="" method="post"><select name="" onChange="top.location.href = this.options[this.selectedIndex].value;">
<option value="index.htm">Public Access:</option>
<option value="cases.htm">Case Studies</option>
<option value="biblio.htm">Bibliography</option>
<option value="appnotes.htm">Application Notes</option>
<option value="vendors.htm">Vendor Links</option>
<option value="ptrain.htm">Training, Education</option>

Another reference --


Comments --

The only problem with the above examples is that it requires javascript. By adding in a proper action attribute to the form tag, and pointing it to a CGI-script (or any serverside process) which does the redirection for you, then you'll have a reliable solution: javascript solution when available, and a server side process as a backup. -- Isofarro

Forms are not necessarily a good way to navigate a site. Plain old text links (maybe enhanced with CSS), or good old image buttons with ALT text or a rollover or two, are much more useful - and they look a lot nicer than those ugly forms, too.

What's more, browsers without Javascript (and this includes search engines) might not be able to use your site at all. -- Matthias Gutfeldt

My only problem ;-) is an editing quibble: pull-down or pulldown? I'm in favor of removing as many hyphens as possible!

You make a pull-down menu, then pull down the pulldown. Hyphenate the compound adjective, combine the two words into one for a noun, separate the components with a space for a verb clause. -- Jerry Muelver

MSI's (now Accelrys) house style was pulldown, standalone, popup, etc. FWIW. But we tended to follow science style rather than MicroSoft or Chicago. Marj Tiefert

HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited January 10, 2002 8:51 pm (diff)

This FAQ is happily hosted by Betadome Digital Media