Input Reset type 属性
定义和用法
type
属性返回复位按钮是哪种类型的表单元素。
Voor het复位按钮对象,此属性始终返回 "reset
".
Example
Find out which type of form element the reset button belongs to:
var x = document.getElementById("myReset").type;
Syntax
resetObject.type
Technical details
Return value: | String, the form element type of the reset button. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |