当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM type属性
The type property returns the type of form element. For a checkbox object this will always be "checkbox".
type属性返回form元素的类型,checkbox对象的类型名称就为"checkbox".
checkboxObject.type |
The following example returns which type of form element the checkbox is:
下面的举例将返回chechbox的元素类型:
<html> <form> <script type="text/javascript"> </body> |
Get the type of the form element (checkbox)
得到表单中元素的类型(checkbox)
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
吃惊 | 欠揍 | 支持 | 很棒 | 一般 | 搞笑 | 扯淡 | 不解 |