javascript - How to change browser bar url without reload -


i have website generates following url on home page in browser bar:

http://example.com/int/bdf/eng/ 

i want change following without reloading page:

http://example.com 

is there ie8+ solution available?

i know window.history.pushstate("", "", ""); how use it? or better use htaccess file?

according w3c standards can use location hash property.

for example url this:

http://www.example.com/test.htm#part2 

the location.hash value be: "#part2" , here jsfiddle shows how can use that.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -