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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:25:34+00:00 2026-05-30T00:25:34+00:00

I am working with JavaScript and AJAX. One of the AJAX function adds the

  • 0

I am working with JavaScript and AJAX. One of the AJAX function adds the “#” sign at the end of the URL. The function works, but I want to know why only this function adds that sign and not the other functions. Could the “#” sign bring some problems on the future?

  • 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-05-30T00:25:37+00:00Added an answer on May 30, 2026 at 12:25 am
    1. a # sign on a URL is called the hash sign and tend to separate the URL from the anchor on the page, so you can navigate to portions of the page and not only to the top of the page.

    2. In the AJAX world, this can be also used to keep the current page and you can easily know where you came from (as pages are loaded async) so you can easily go back without using the history api (alpha version of jQueryMobile used this technique)

    3. in a url like http://domain.com/page2.htm#page1.htm you can easily know where do you came from using document.location.hash

    4. but normally is simple having an anchor tag with the hash as href like <a href="#">click here</a> witch normaly is a simple trick to let the anchor tag know to behave like a link but go nowhere … and if you don’t want that to be written in your URL, you simply have to return false so the anchor link do not jump to # (witch is the current page).

    BTW, this will not, in any way, mess up with your code or any future code, it’s just bad practice.

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

Sidebar

Related Questions

Im working on a website (html,css,javascript, ajax, php,mysql), and I want to restrict the
Update: I did get this working, here is the new javascript: $(document).ready(function() { $('a').click(
Working on an AJAX website (HTML,CSS,JavaScript, AJAX, PHP, MySQL). I have multiple javascript functions
I'm working on a JavaScript image resizing feature which rely on the IE only
I have a JQUERY AJAX post function that will work if there is one
I'm trying to learn jQuery's ajax functions. I've got it working, but jQuery doesn't
I'm trying to pass a variable from one function to another, but the var
The following code already exists in one of the javascript files i am working
While working with some jQuery ajax, I've run into this problem with Chrome and
I have the following ajax call: $(#welcome a.close).click(function(e) { $.ajax({ type: GET, url: /visitors/hide_welcome,

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.