[Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2006-03-22
Medium Priority
Last Modified: 2013-12-12
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?

Question by:acidgold
LVL 15

Accepted Solution

Tomeeboy earned 250 total points
ID: 16271575
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!  ;)

Author Comment

ID: 16275769
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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month20 days, 9 hours left to enroll

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question