View Full Version : Custom Search Box Question(s)

07-15-2011, 05:08 PM
I have what I think is a javascript question (correct me if Im wrong).

I designed a custom form in DreamWeaver but can't get it to work. Im thinking I need to add some javascript to work.

Heres my form code at the moment:

<form id="search-form" action="" method="post" enctype="multipart/form-data">
<div class="search-form">
<input type="text" name="search" value="Type Keyword Here" onBlur="if(this.value=='') this.value='Type Keyword Here'" onFocus="if(this.value =='Type Keyword Here' ) this.value=''" />
<a href="#" onClick="document.getElementById('search-form').submit()">Search</a>

What I want to do is have the user type in something, click on search, and then show up the results on another page named results.

What do I need to do?