select - D3: Change text in url without making request -
suppose have url "http://example.com?name=foo" on browser, how alter "http://example.com?name=bar" without making new request, selecting , changing title text "foo" "bar".
d3.select("title").text('bar');
is there way or isn't? thanks!
just javascript, d3.js not required this. seek this:
window.location.search = "?name=bar";
if want without refresh:
window.history.pushstate("object or string", "title", "/new-url");
refer: http://spoiledmilk.com/blog/html5-changing-the-browser-url-without-refreshing-page/
url select d3.js
No comments:
Post a Comment