G
Guest
(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.
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.