You are here:  NetStrider » Tutorials » HTMLRef » Commands » BUTTON «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <BUTTON> Command next

Command Syntax:

<BUTTON command parameters>

Defines a button within a <FORM>.

At present the command functions only in the Internet Explorer browser.

See also:  <FORM>.

Command Parameters:

name="button name"

Declares the control name for the button within the form.


disabled

Declares that the button is disabled.


type="button | submit | reset"

Declares the button type where:

  • button - creates a form push button.

  • submit - creates a form submit button.

  • reset - creates a form reset or clear button.


value="initial value"

Declares the initial value, if any, associated with a push button.  This parameter is not necessary with submit or reset buttons.

Examples:
<FORM method="post"> <b>Your Name:</b><BR> <INPUT type="text" name="first_name" size=20><BR> <BUTTON name="reset" type="reset"> <IMG src="../images/oops.gif" tppabs="http://www.netstrider.com/tutorials/HTMLRef/images/oops.gif" alt="OOPS!" height=40 width=150> </BUTTON> </FORM> Yields -

Your Name:


    Only in the Internet Explorer browser.

The image referenced, oops.gif, becomes the button.  In this case, a form clear button.

Enter data in the input box and then press the button below it to see the effect.

Return to Section A:D


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz