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

Tech-Archive recommends: Speed Up your PC by fixing your registry



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


.



Relevant Pages

  • Re: iframe validation issues
    ... the iframe tag. ... proper html and thus will not validate. ... strict. ... strict version of html or xhtml from html 4.01 on. ...
    (alt.html)
  • Re: Kiwiland response to Richard
    ... This is caused by bad HTML, or specifically no HTML at all. ... The 'no html' and 'no doctype' referred to the 'frame source', ... Nowadays the source to an iframe can be ... Firefox renders correctly and they nuse the same CSS. ...
    (comp.lang.cobol)
  • Re: Toggling visibility in css, not javascript
    ... You can put the iframe in a division if you want. ... The is not allowed in strict Doctypes such as html 4.01 ... However it does not work on one family of browsers (if you can't guess ... You can use some css to control ...
    (alt.html)
  • Re: Kiwiland response to Richard
    ... the frame source and there are no HTML tags or even a DOCTYPE. ... inline frames were mainly used for viewing HTML ... Nowadays the source to an iframe can be ...
    (comp.lang.cobol)
  • Re: I frame vulnerability?
    ... >>> would rather render the html, ... >>> can be no communication with a remote site via an Iframe or anything ... If however they have OE/O configured to read ... you a forwarded email, and you open up the forwarded email, it does *not* ...
    (alt.comp.anti-virus)