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 8738559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:45:28+00:00 2026-06-13T10:45:28+00:00

I have a menubar. Each item on the menubar is a hyperlink: <a href=#

  • 0

I have a menubar. Each item on the menubar is a hyperlink:

  <a href="#" title="item1">

Based on the menu selection, I am displaying a few divs and hiding the remaining divs. Everything works fine. If I click on the menu item the results are displaying on the same page that is fine but on the browser address bar # symbol is displaying like localhost/abc# which is causing to activate the Browser Back( <– ) button which may give a wrong a assumption to user that they can click on the back button on the browser.

IS there a way to avoid displaying the # in the address bar?

I am using the return false; statment in the event handling function to disable the href link.

  • 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-13T10:45:30+00:00Added an answer on June 13, 2026 at 10:45 am

    If you end the event handler with return false as you say it will not appear in your address bar. Basically there’s something not going quite as it should between the event handler being called and return false (since it doesn’t return). Make sure that your JavaScript is error free.

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

Sidebar

Related Questions

http://anaya.sonikastudios.com/ The HTML: <div id=menubar class=grid_12 alpha omega> <ul id=menu> <li><a href=# title=Diamond Engagement
I have a menu bar and I want to create a div for each
I have an application that lives in the menubar, without a main menu or
I am working om a menu bar, each menu bar item is an image,
I have a menubar and tabs the code like below: <div id=menu> <ul> <li><a
All, I have a horizontal menu bar. When the user hovers over each link
I have a menu (vertical menu) and i want each of the Ul's to
I have a menu bar in which each button is an image floated to
I have a menubar(div) which houses bookmarks and when too many bookmarks are inserted
I'm designing a website right now, and have a menubar at the top for

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.