(フォーム) type |
          |
フォームエレメントの形式を返します |
- 書式
- document.★.◆.type
- ★=フォーム名 または forms[ 参照番号 ]
- ◆=エレメント名 または elements[ 参照番号 ]
- 文例
- myType = document.forms[0].elements[0].type
- myType = document.myFORM.myInput.type
- 上位オブジェクト
- button, checkbox, fileUpload, hidden, password, radio, reset, select, submit, text, textarea
- 説明
- フォームエレメントの形式を返します。例えばポップアップメニュー選択ではselect-one、複数項目選択できる場合はselect-multipleといった文字が返されます。Netscape 2.0では形式を返さない場合があります(select-multipleなどは返さず空文字になります)。
- 関連
elements,
value