Html - scroll scan by itself

I am experiencing this weird problem my scrollbar is jumping on its own to where I don't want it.

I have a table with a scrollbar inside this page, if the user has a smaller screen, the page will automatically add a scrollbar. If I scroll down to the bottom of the table and click on it, the page scroll bar jumps up, so I can no longer see what I clicked. Any ideas?

Thank.

0


source to share


4 answers


There are several things that could be causing this.

  • You clicked on a hyperlink with an href from "#" which will make most browsers scroll to the top of the page,
  • It is possible that a CSS rule is being triggered somewhere :focus

    or :active

    that causes the page height to change
  • This is where the javascript onclick fails and the page changes.
  • ... or perhaps something else.


Have you tried in different browsers? This could be a bug in the browser itself.

+1


source


Are you sure the object causing the problem is not <a href='#'><div onclick='yourJavaScriptFunction()'>...</div></a>

or something similar?



0


source


Perhaps you have a meta refresh tag

<meta http-equiv="refresh" content="600">

      

I've seen these issues cause similar issues on safari, post a link to the page and you will find the solution much easier.

0


source


My scrollbar jumps when I press the Page or Down button. Also, my trackpad with a laptop might cause odd mouse behavior if I give up my thumb against it.

And when I poured a large latte into my keyboard, then I had problems. But then the whole computer stopped working after about an hour.

-2


source







All Articles