i want to get #value into the url to without refreshing the page ??

i tried window.location.hash to get the #value but it return blank..

the url is index.php?page=contact-us#email

plz help to resolve the problem >>

Recommended Answers

All 4 Replies

Member Avatar for stbuchok

Can you explain your reasoning for needing to do this?

There may be a better way if you explain.

Can you explain your reasoning for needing to do this?

There may be a better way if you explain.

thanks for your reply, i have three option on the page (contact-us.php,
1. Contact by phone,
2. Contact by email,
3. Contact by Address

i want to give response to user for the particular option, i will do it with the jquery's hide() and show() effects but i also want to change the url, without refreshing the page.

hopefully you understand my issue,

Member Avatar for stbuchok

What is the technical reason for changing the URL?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.