Learn HTML Code Tutorial Reference Guide

Attribute for <BUTTON ...>
TYPE = BUTTON | SUBMIT | RESET

TYPE indicates that the button is one of three types:

This code:

<FORM ACTION="../cgi-bin/mycgi.pl" NAME="application">
application date: <INPUT TYPE=TEXT NAME="appdate" SIZE=10>
<BUTTON 
    TYPE=BUTTON 
    onClick="document.application.appdate.value=today()"><I>today</I></BUTTON><P>
<BUTTON TYPE=RESET><FONT COLOR=RED>Reset Form</FONT></BUTTON> 
<BUTTON TYPE=SUBMIT><STRONG>Send It!</STRONG></BUTTON>
</FORM>

gives us this form (you can also see the today() script in this page):

application date:

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial