Escuche para URL Hash Change JavaScript
window.onhashchange = function() {
//code
}
window.onpopstate = function() {
//code
}
Pixels
window.onhashchange = function() {
//code
}
window.onpopstate = function() {
//code
}