Closed Bug 523165 Opened 15 years ago Closed 15 years ago

Page moves up to focus on first text field in form

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: snchrisman, Unassigned)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MDDC; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

I have a website contains header and navigational menus.  The content of the page has form with many text fields.  When load a page, the page moves up and set focus to the first text field in the form.  Focus to first text field is very cool but it is NOT cool to move the page up where the first text field is at the top in the browser and not seeing the header and navigational menus.

Reproducible: Always
Please give a URL with the problem.
The site is under construction.  Here is a link that will show this problem: http://208.106.231.64/checkout-info.cfm

I want to add that it does not do this in IE, Safari, Netscape... Only Firefox.

Thank you.
Tested also on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; it; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

Firefox focus the first input text even if there is no need to scroll the page.
So, you are saying that I do not need to scroll the page up?  If so, there is nothing in my code to scroll it up.  Is this still a bug?
No, I confirm what you are saying. I don't think this is a bug, but it is not nice as you said
I see this in your JS: document.getElementById('BillFirstName').focus(); 

You should turn off Javascript in preferences and you will see that this is not a firefox bug.

Btw: I used to shop at Iwan Ries for my tobacco when I lived in Chicago. Great place.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.