INPUT type=button Element | INPUT type=button Object

MS Office DHTML, HTML & CSS

INPUT type=button Element | INPUT type=button Object


Creates a button control.

HTML Syntax

<INPUT	
    ACCESSKEY = key
    ALIGN = LEFT | CENTER | RIGHT
    ALT = text
    CLASS = classname
    DISABLED
    ID = value
    LANG = language 
    LANGUAGE = JAVASCRIPT | JSCRIPT | VBSCRIPT  | VBS
    LOWSRC = url
    MAXLENGTH = n
    NAME = name
    READONLY
    SIZE = n
    STYLE = css1-properties
    TABINDEX =n
    TITLE =text
    TYPE = BUTTON
    VALUE = value
    event  = script
>

Remarks

The button element is an inline element and does not require a closing tag.

This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.

Members

Styles

Example

This example uses the button element to define a button that responds appropriately when clicked.

Sample Code

<INPUT TYPE=button ID=btnEmergency VALUE="In case of emergency, 
push this button!"
    onClick="alert('Aaaaaaaggggghh!!!!')">

The preceding HTML code creates this button:

See Also

BUTTON, INPUT


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.