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
Post a Comment