(フォーム) focus |
         |
フォームの入力エリアに入力ポインタを合わせます |
- 書式
- document.★.◆.focus()
- ★=フォーム名 または forms[ 参照番号 ]
- ◆=エレメント名 または forms[ 参照番号 ]
- 文例
- myValue = document.forms[0].elements[0].focus()
- myValue = document.myFORM.elements[0].focus()
- 上位オブジェクト
- button, checkbox, fileUpload, password, radio, reset, select, submit, text, textarea
- 説明
- フォームの入力エリアに入力ポインタを合わせます。
- 関連
blur,
onBlur,
onFocus