2

Possible Duplicate:
Find the “#” character in a string with Javascript
How do I get the value after hash (#) from a URL using jquery

Can i get the #value on the browser address bar ?
For Example from the URL: http://test.com/#div1
can i get the div1 from that url using javascript ?

Community
  • 1
  • 1
Acil Az
  • 170
  • 2
  • 9

1 Answers1

2

You can use window.location.hash.

Tanzeeb Khalili
  • 7,324
  • 2
  • 23
  • 27