Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8437623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:29:03+00:00 2026-06-10T07:29:03+00:00

I have a div set to toggle hide/show onClick. I currently have it set

  • 0

I have a div set to toggle hide/show onClick. I currently have it set to trigger a chat feature but when someone clicks it, it brings them back to the very top of the page, or resets the position of where they last where. How can I stop this from happening easily ? Thank you!

SOLUTION: Thank you to everyone who contributed! While all the answers worked, I ended up just removing the href=”#” like everyone said since it was the most simplest method. Thanks again guys!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:29:04+00:00Added an answer on June 10, 2026 at 7:29 am

    Usually this is because you have href="#" or something and it is actually going to this anchor and not finding it.

    So what you should do is return false; in your onclick handler. That will prevent the click processing from continuing, thus preventing the browser from navigating to your nonexistent anchor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set a fix height of DIV and set its overflow-y:scroll but the
I have a div thats currently set to display none, The Div has a
ok, So I have multiple divs(7) which I want to toggle for show hide.
I currently have this code: $( .feature-tabs ).tabs( { collapsible: true, fx: [{opacity:'toggle', duration:'slow',
I have a div in masterpage that I set a toggle effect on it.
I have a div set transparent with rgba and want on that div an
I have a div that's set to overflow: auto; . This contents of this
i want to have an element inside a div set to height 100%. The
I have this div inside a repeater, where i set the class, onmouseover and
I have a div which size may differ time to time. At I set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.