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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:07:11+00:00 2026-05-26T00:07:11+00:00

Would you advise against reading and using the hash DOM node property? (Do you

  • 0

Would you advise against reading and using the hash DOM node property? (Do you think it might be deprecated and removed in the future?)

What is it? For a link <a href='http://server/folder/page#the-hash'>, the value of the hash property is #the-hash. It seems to be present in all browsers, see the JavaScript Bible page 603, and I’ve tested Safari, Chrome, FF and IE and Opera.

Background: I use jQuery, but in IE 7 this: $(elem).attr('href'); doesn’t return the href attribute, but rather the href prefixed with server address and the path to the page. Example: if the href is #the-hash then attr returns http://server/folder/page#the-hash in IE 7.
Here is a jsfiddle example.

  • 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-26T00:07:11+00:00Added an answer on May 26, 2026 at 12:07 am

    If you stay away from every feature, API, etc that might possibly be deprecated sometime in the distant future, you’ll never get anything done. They could deprecate alert tomorrow, or for…in (far more likely, but eh. that’s beside the point.)

    Worry about what’s deprecated now. And location.hash is not. It’s a full-fledged member of the HTML5 DOM, and will be for the foreseeable future. If it ever does end up deprecated, it’ll probably still be supported for ages after, as a “living standard” (which is what HTML has allegedly become) makes things exceedingly hard to deprecate and/or remove.

    Either way, if you want to change it later, you can.

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

Sidebar

Related Questions

I am banging my head up against the wall about what I think would
Our company is currently using a simple trunk/release/hotfixes branching model and would like advice
(Unfortunately, this question is about a non-recommended practice. While I appreciate advise against doing
We are currently considering using DotNetNuke as a base for our future portal-based and
I have read several forums that advise against storing videos in a database. I
I want to run a selenium tests using python against a server farm that
In another Stack Overflow question Leon Timmermans asserted: I would advice you not to use
What advice would you have for someone who wants to start in the BI
Just wondering what the best practise advice would be on the architecture for a
I would like some advice on the best approach to use in the following

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.