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

  • Home
  • SEARCH
  • 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 6738847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:25:01+00:00 2026-05-26T11:25:01+00:00

Is there any other use for shebangs/hashbangs besides for making AJAX contents crawlable for

  • 0

Is there any other use for shebangs/hashbangs besides for making AJAX contents crawlable for Google? Or is that it?

  • 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-26T11:25:02+00:00Added an answer on May 26, 2026 at 11:25 am

    The hash when used in a URL has existed since long before Ajax was invented.

    It was originally intended as a reference to a sub-section within a page. In this context, you would, for example, have a table of contents at the top of a page, each of which would be a hash link to a section of the same page. When you click on these links, the page scrolls down (or up) to the relevant marker.

    When the browser receives a URL with a hash in it, only the part of the address before the hash is sent to the server as a page request. The hash part is kept by the browser to deal with itself and scroll the page to the relevant position.

    This is what the hash syntax was originally intended for, so this is the direct answer to your question. But I’ll carry on a bit and explain how we got from there to where we are now…

    When Ajax was invented, people started wanting to find ways to have a single page on their site, but still have links that people could click on externally to get directly to the relevant content.

    Developers quickly realised that the existing hash syntax could do this for them, because it is possible to read the URL’s hash value from within javascript. All you have to do then is stop it from scrolling when it sees a hash (which is easy enough), and you’ve got a bit of the URL which is effectively ignored by the browser, but can be read and written to by javascript; perfect for use with Ajax. The fact that Google includes the hash part of a URL in its searches was just a lucky bonus to begin with, but has become quite important since the technique has become more widespread.

    I note that people are calling this hash syntax a “shebang” or “hashbang”, but technically that’s incorrect; it’s just a hash that is relevant — the ‘bang’ part of the word “hashbang” refers to an exclamation mark (‘bang’ is a printing industry term for it). Some URLs may indeed add an exclamation mark after the hash, but only the hash is relevant to the browser; the string after it is entirely up to the site’s authors; it may include an exclamation mark or not as they choose, but either way the browser won’t do anything with it. Feel free to keep calling it a hashbang or shebang if you like, but understand that only the hash is of significance.

    The actual term “shebang” or “hashbang” goes back a lot further, and does refer to a #! syntax, but not in the context of a URL.

    The original meaning of this term was where these symbols were used at the beginning of a Unix script file, to tell the script processor what programming language the script is written in.

    So this is indeed an answer to your question, the way you’ve worded it, but is probably not what you meant, since it has nothing to do with URLs at all.

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

Sidebar

Related Questions

Is there any reason to use Spring MVC (or other similar frameworks) as a
Other than convention, is there any reason to use or not to use local
Are there any other packages for doing Venn diagrams in R besides the limma
Is there any other way to change the QTextLayout of a QTextBlock that is
Is there any other way to write javascript:false that is more pleasant? I'm building
Is there any other use of the question mark ? in PHP other than
Is there any other use of tag? which is useful or it's only for
Are there any other languages that default to anything other than ddmmyyyy (other than
Is there any other command for redirecting a controller to a particular view page
is there any other simple,nicer way? require 'pp' a1 = [02/28/10,Webinars,131,0,26 Feb 2010,0,3d, 8h,

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.