Web paged load at the top in IE but scrolled down in Firefox
-
Having written a few webpages for the first time I find that in IE11 on Windows 8.1 they load as expected. However using Firefox 36.0.1 on the same machine most of the pages are loaded scrolled to near the bottom of the page. The pages with some relatively simple comment & reply stuff at the end are the ones that don't load properly. I suspect some of the javascript that opens a form and positions the page for a commenter is the problem. Edit: Now tracked this to creation, then hiding, of a Form for comments which has
autofocus required
on the first input field. When a user clicks a comment or reply link, my strategy was to append the element.Form
to theDIV
containing the link and callshow
on that Form. Can I create the Form in an initially hidden state so theautofocus required
doesn't scroll the page down when the page loads?