In this case, there is no request to the server and the page is not being loaded again, so I can't use the "onload" event from body too, for exemple.
I don't want to bind a function to the "onclick" event of links too, because in this way it doesn't going to work when the user changes the URL manually.