Java Reference
In-Depth Information
Figure 5-1. The user interface for the Open Directory
The Open Directory interface is a simple form with one input field named search ; input
typed in this field is sent to a program at http://search.dmoz.org/cgi-bin/search , which
does the actual search. The HTML for the form looks like this:
< form class = "center mb1em" action = "search" method = "GET" >
< input style = "*vertical-align:middle;" size = "45" name = "q" value = "" class = "qN" >
< input style = "*vertical-align:middle; *padding-top:1px;" value = "Search"
class = "btn" type = "submit" >
< a href = "search?type=advanced" >< span class = "advN" > advanced </ span ></ a >
</ form >
There are only two input fields in this form: the Submit button and a text field named
q . Thus, to submit a search request to the Open Directory, you just need to append
q= searchTerm to http://www.dmoz.org/search . For example, to search for “java”, you
 
Search WWH ::




Custom Search