Changing the browser-URL without refreshing page(Jquery). — CKandPKGang


here is best example of how to use pushstate best example for pushstate is: http://html5.gingerhost.com/ Jquery code: $(document).ready(function(){ var href = $(this).attr(“href”); // HISTORY.PUSHSTATE history.pushState(”, ‘New URL: ‘+href, href); e.preventDefault(); });

via Changing the browser-URL without refreshing page(Jquery). — CKandPKGang

Advertisements