Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need l'ill help. i have something to do?
i want change url values according to menu by using java script.
l.e
http://abc.com/aboutus
http://abc.com/contactus

for single page web site.

Thanks In advance :)


Regards,
Imran
Web Designing Indore
Posted

1 solution

Use the history engine

https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history[^]

history.pushState(null, "", "aboutus");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900