Input Password form 属性
定义和用法
form
属性返回对包含密码字段的表单的引用。
此属性在成功时返回表单对象。
注意:此属性是只读的。
实例
获取包含 <input type="password"> 元素的表单的 id:
var x = document.getElementById("myPsw").form.id;
Syntax
passwordObject.form
Technische Details
Rückgabewert: |
Verweis auf das Formularelement, das das Passwortfeld enthält. Wird das Passwortfeld im Formular nicht gefunden, wird zurückgegeben |
---|
Browser-Unterstützung
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Unterstützung | Unterstützung | Unterstützung | Unterstützung | Unterstützung |