Reset Buton

C

Chris MArtin

On a Database Results page with a search box (field), the "reset" button appears to do nothing. I need a way to "clear" the text box so you can get all records again. Any help would be appreciated.
 
J

Jim Buyens

Add a button like:

<input type="button" value="Restore"
onclick="document.forms[0].T1.value='';document.forms
[0].submit();">

where T1 is the name of the text box.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



-----Original Message-----
On a Database Results page with a search box (field),
the "reset" button appears to do nothing. I need a way
to "clear" the text box so you can get all records again.
Any help would be appreciated.
 
Top