Posted By

dnnsldr on 08/22/12


url redirect tabs

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Change URL without refreshing

 / Published in: JavaScript


//You cannot change the whole url without redirecting, what you can do instead is change the hash.

//The hash is the part of the url that goes after the # symbol. //That was initially intended to direct you (locally) to sections of your HTML document, but you can read and modify it through javascript to use it somewhat like a global variable.

  1. document.location.hash = "show_picture";

Report this snippet  

You need to login to post a comment.