分享

input type=button HTML元素

 小明 2006-11-10

定义

创建按钮控件。

Creates a button control.

注释

INPUT type=button 元素在 Internet Explorer 3.0 及以上版本的 HTML 和脚本中可用。

此元素是一个内嵌元素。

此元素不需要关闭标签。

The INPUT type=button element is available in HTML and script as of Internet Explorer 3.0.

This element is an inline element.

This element does not require a closing tag.

示例代码

下面的例子使用 INPUT type=button 元素定义了响应点击的按钮。

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

<INPUT TYPE=button ID=btnEmergency VALUE="出现紧急情况时请按此钮!"    onClick="alert(‘Aaaaaaaggggghh!!!!‘)">

另见

button, input

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多