i have certain buttons on simple html page...nw i want to change the url on click over each button without refreshing the page...i.e the page should remain same only the url gets change.
consider an example........my home page is www.homepage.com/test
nw if i am using parent.location.hash="sitename/testingsite"
then the url changes to www.myhomepage.com/test#sitename/testingsite
nw the only issue is # i want to remove hash from that url ,please suggest me.
Ankit Garg wrote:If you set the hash, the hash symbol will be there. if you want to remove that, that will be like changing the url which will refresh your page. What do you basically want to achieve??
actuallly i have created a website in which all the data are store in index page..eg homepage,aboutus,contact ..and i fetched the data using ajax.since i am fetching the data through ajax the url is not changing..but i wanted to change the url without refreshing the page means as we click on aboutus the ajax will bring the page but at the same time the url should change to ABOUT US path.......is there any way ??