You are here: irt.org | FAQ | JavaScript | Form | 2 | Q601 [ previous next ]
Try:
<form> <input type="checkbox" onClick="if (this.checked) this.form.myText.focus()"> <input type="text" name="myText"> </form>
©2018 Martin Webb