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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:49:34+00:00 2026-06-09T00:49:34+00:00

I have a url like http://www.example.com/folder/file.html#val=90&type=test&set=none&value=reset?setvalue=1&setvalue=45 Now I need to get the portion of

  • 0

I have a url like http://www.example.com/folder/file.html#val=90&type="test"&set="none"&value="reset?setvalue=1&setvalue=45"

Now I need to get the portion of url from starting from #, How do I get that, I tried using window.location.search.substr(); but looks like that searches for ? in a url. is there a method to get the value of url after #

How do I also get a portion of url from ampersand &

Thanks,
Michael

  • 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-09T00:49:35+00:00Added an answer on June 9, 2026 at 12:49 am
    var hash = window.location.hash;
    

    More info here: https://developer.mozilla.org/en/DOM/window.location

    Update: This will grab all characters after the hashtag, including any query strings. From the MOZ manual:

    window.location.hash === the part of the URL that follows the # symbol, including the # symbol.
    You can listen for the hashchange event to get notified of changes to the hash in
    supporting browsers.
    

    Now, if you need to PARSE the query string, which I believe you do, check this out here: How can I get query string values in JavaScript?

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

Sidebar

Related Questions

If I have a URL like: http://www.example.com:9090/test.html Then I know that www.example.com is the
If I have a URL like this: http://www.example.com/?a=1&b=2&c=3 (an example) I am working on
I have a url of a website. It looks something like this: http://www.example.com/downloads/file/4789/download ?
I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
I have a url string like this: http://www.google.com/cse?cx=017840637368510444960:ny1lmky7r-0&client=google-csbe&output=xml_no_dtd&q=simon+g I need to send this url
I have url http://www.domain.com/folder/?variable=1 i would like to do a mod redirect to index.cfm
I have a url formatted like this: http://www.example.com/detail/state-1/county-2/street-3 What I'd like to do is
Given I have a URL like http://www.example.com/example.json And I would like to check the
I have an URL like this http://www.example.com/Data/image/office-dôn-sì-à.jpg I want to copy that file to
Suppose I have the URL look like: http://www.example.com/category/product/htc/desire , I used $_SERVER['REQUEST_URI'] to get

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.