dcsimg

Lesson 26: The Script and Its Effect



The Script

<SCRIPT LANGUAGE="JavaScript">

function Gofindit(){
var searchfor = document.formsearch.findthis.value
var FullSearchUrl = "http://av.yahoo.com/bin/query?p=" + searchfor location.href = FullSearchUrl; }

</SCRIPT>

<FORM NAME="formsearch">
Search Yahoo for:<INPUT NAME="findthis" SIZE="40" TYPE="text">
<INPUT TYPE="button" VALUE="Go Find It" onClick="Gofindit()">
</FORM>

 

The Script's Effect

Search Yahoo for:

 

Back to the Index Page