Bug: JS reload() in Iframe causes tabindex reset in parent frame.



Lance Rushing
07-09-2005, 10:03 PM
(didn't know where to post this. If anyone can get this to the IE team...)

Description:
If a iframe does a window.location.reload() the parent frame's tabindex gets
lost (set to null?) and on the next tab key press, the focus will move to the
address bar.

Possible Workaround:
use <meta http-equiv='refresh' content=10> instead. (but this causes an
annoying 'click')

Sample HTMLto recreate:

--- FILE: IE_bug_base.html ---
<html>
<body>
<form>
<input type="text"><br />
<input type="text"><br />
</form>
<iframe src="IE_bug_iframe.html"></iframe>
</body>
</html>

--- FILE: IE_bug_iframe.html ---
<html>
<body onload="setTimeout('window.location.reload()', 10000)">
<script>
ds = new Date();
document.write(ds.toString());
</script>
</body>
</html>

--- to recreate ---
Create the above files in the same directory. Open IE_bug_base.html with
your browser. Click/Tab into to the first text box. Wait for the iframe to
reload (you will see the date/time change). Press the tab key, and the focus
will move to the address bar.

Galen
07-09-2005, 10:03 PM
In news:1012FE2A-7741-4D12-A019-DB4F6C918EE1@microsoft.com,
Lance Rushing <Lance Rushing@discussions.microsoft.com> had this to say:

My reply is at the bottom of your sent message:

> (didn't know where to post this. If anyone can get this to the IE
> team...)
<snip>

http://support.microsoft.com/gp/contactbug

(It's a free phone call.)


Galen
--

"And that recommendation, with the exaggerated estimate of my ability
with which he prefaced it, was, if you will believe me, Watson, the
very first thing which ever made me feel that a profession might be
made out of what had up to that time been the merest hobby."

Sherlock Holmes


Bug: JS reload() in Iframe causes tabindex reset in parent frame.