• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

Firefox refresh makes PHP page "jump" to the top - problem with dynamic content? (not IE)

I am writing a dynamic website that uses PHP/Mysql to load content, yadda yadda. That part is moot.

When I'm viewing my site in firefox, if I scroll halfway down and click refresh, it jumps to the top of the page. This doesn't happen in IE on the same page. Is this some kind of problem with dynamic navigation bars influenced by PHP?

An example is on this site (not mine) scroll down some and click refresh in FireFox:

What, in general, causes this to happen? How to large sites like HP.com that are heavy dynamic content stop this from happening?

1 Solution
Hi acidgold,

Not entirely sure what would cause this problem, but I don't think that custom scrollbars would do it.  Perhaps it is a result of having some type of onload() javascript that is executing when the page loads... I noticed that the example page you gave uses onload() several times.  If you're really wanting to find out exactly what is causing the problem, the best thing to do would be create a simple test page and gradually add all of your scripts/code to it (testing the refresh effect between additions).  

Hope this helps!  ;)
acidgoldAuthor Commented:
I meant dynamic menus (navigation of website) when I said navigation bars.

Either way, I noticed that this problem happens on some of google's pages too. If there is something wrong with a google site, chances are there is actually something wrong with your browser, I learn :)

So I am dismissing the problem for now, although I'll take your advice if it ever REALLY gets me annoyed.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now