A
Arvin Portlock
I can't make this work! I have two frames, a table of
contents frame on the left and a frame with lots of
form elements in it on the right.
<frameset rows="100%,*" cols="140,*">
<frame name="toc" src="toc.html">
<frame name="eadInput" src="form.html">
</frameset>
I want to click on a table of contents link on the right,
then go to the <textarea> in the frame on the left **and
set the focus in that textarea** so the user can simply
begin typing.
<a href="form.html#abstract"
onClick="javascript:
parent.eadInput.document.eadForm.ABSTRACT.focus();
parent.eadInput.focus()"
target="eadInput">
where "ABSTRACT" is the name of the <textarea> in the form
called "eadForm" in the right frame. In MSIE the focus is
switched to the right frame after clicking the link, but in
Firefox the focus stays on the left frame (which is why I
added that extra parent.eadInput.focus() to my event handler)
Can anybody tell me what I'm doing wrong?
contents frame on the left and a frame with lots of
form elements in it on the right.
<frameset rows="100%,*" cols="140,*">
<frame name="toc" src="toc.html">
<frame name="eadInput" src="form.html">
</frameset>
I want to click on a table of contents link on the right,
then go to the <textarea> in the frame on the left **and
set the focus in that textarea** so the user can simply
begin typing.
<a href="form.html#abstract"
onClick="javascript:
parent.eadInput.document.eadForm.ABSTRACT.focus();
parent.eadInput.focus()"
target="eadInput">
where "ABSTRACT" is the name of the <textarea> in the form
called "eadForm" in the right frame. In MSIE the focus is
switched to the right frame after clicking the link, but in
Firefox the focus stays on the left frame (which is why I
added that extra parent.eadInput.focus() to my event handler)
Can anybody tell me what I'm doing wrong?