J
jm
I have searched everywhere and was only able to find many that have
had the same problem.
I have a frameset.
In the top frame, I have a tabindex. When the framset loads, I have
some Javascript that sets focus() and select() to the first element in
the top frame.
Based upon the tabindex in this frame, when I hit tab it should
immediately go to, of course, tabindex=2 (which is in the same frame).
However, it instead first goes to the address bar and then back to the
frame and then to the control designated with tablndex=1.
Obviously, the script is executing:
<script language="javascript">
parent.frames(0).focus(); //added this, doesn't help.
parent.frames(0).document.all("txtTo").focus();
parent.frames(0).document.all("txtTo").select();
</script>
which brings the focus and select to the appropriate control.
However, and here is the "bug" part of it, IE does not really give the
focus to the frame itself. Even though the control is selected, doing
a view source, will quickly show that the framset is still the
selected object and not the frame(0), as needed. The code above was
used in the frameset master and tried the frame itself, both with the
same results - first tab goes up to the address, then to any other
bar, then to tabindex=1, etc. It is because the frame never gets the
initial focus, just the control.
Any ideas how to fix this? Thanks.
had the same problem.
I have a frameset.
In the top frame, I have a tabindex. When the framset loads, I have
some Javascript that sets focus() and select() to the first element in
the top frame.
Based upon the tabindex in this frame, when I hit tab it should
immediately go to, of course, tabindex=2 (which is in the same frame).
However, it instead first goes to the address bar and then back to the
frame and then to the control designated with tablndex=1.
Obviously, the script is executing:
<script language="javascript">
parent.frames(0).focus(); //added this, doesn't help.
parent.frames(0).document.all("txtTo").focus();
parent.frames(0).document.all("txtTo").select();
</script>
which brings the focus and select to the appropriate control.
However, and here is the "bug" part of it, IE does not really give the
focus to the frame itself. Even though the control is selected, doing
a view source, will quickly show that the framset is still the
selected object and not the frame(0), as needed. The code above was
used in the frameset master and tried the frame itself, both with the
same results - first tab goes up to the address, then to any other
bar, then to tabindex=1, etc. It is because the frame never gets the
initial focus, just the control.
Any ideas how to fix this? Thanks.